Skip to content

Commit 7847b04

Browse files
committed
Linter: Appeasement
1 parent 300b774 commit 7847b04

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/assets/javascripts/beak/widgets/config-shims.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ genConfigs = (ractive, viewController, container, compiler) ->
270270
base64ToImageData = (base64) ->
271271
{ array, height, width, didSucceed } = synchroDecoder(base64)
272272
if not didSucceed
273-
throw new Error("Extension exception: Could not decode the image. Only GIF, JPEG, and PNG formats are supported in NetLogo Web.")
273+
msg = "Could not decode the image. Only GIF, JPEG, and PNG formats are supported in NetLogo Web."
274+
throw new Error("Extension exception: #{msg}")
274275
new ImageData(array, width, height)
275276

276277
{ asyncDialog: genAsyncDialogConfig(ractive, clearMouse)

0 commit comments

Comments
 (0)