From 55bc48c61d0914324fc04ac5e251a07f24dc60cf Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Sat, 31 Jan 2015 18:40:38 -0800 Subject: [PATCH] Fixed problem with error messages in production. --- app/lib/world/errors.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/world/errors.coffee b/app/lib/world/errors.coffee index c4eee90e7..c766d76a6 100644 --- a/app/lib/world/errors.coffee +++ b/app/lib/world/errors.coffee @@ -3,7 +3,7 @@ Vector = require './vector' module.exports.ArgumentError = class ArgumentError extends Error @className: 'ArgumentError' constructor: (@message, @functionName, @argumentName, @intendedType, @actualValue, @numArguments, @hint) -> - super message + super @message @name = 'ArgumentError' if Error.captureStackTrace? Error.captureStackTrace @, @constructor