summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Menezes de Sequeira <MMSequeira@gmail.com>2014-10-14 17:58:57 +0100
committerManuel Menezes de Sequeira <MMSequeira@gmail.com>2014-10-14 17:58:57 +0100
commitdda2d48f16ae56a139cad8feeb8172c3a54b182f (patch)
treea37b58052cb5f6688d3c8305e77f328446eaf7b5
parent5f3279990be3478fde79b94f7dbd5d7da80df84b (diff)
downloadsnap-dda2d48f16ae56a139cad8feeb8172c3a54b182f.tar.gz
snap-dda2d48f16ae56a139cad8feeb8172c3a54b182f.zip
add localization to unknown variable error
-rw-r--r--threads.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/threads.js b/threads.js
index 6a59f3c..086ffcb 100644
--- a/threads.js
+++ b/threads.js
@@ -3003,9 +3003,9 @@ VariableFrame.prototype.find = function (name) {
var frame = this.silentFind(name);
if (frame) {return frame; }
throw new Error(
- 'a variable of name \''
+ localize('a variable of name \'')
+ name
- + '\'\ndoes not exist in this context'
+ + localize('\'\ndoes not exist in this context')
);
};
@@ -3070,9 +3070,9 @@ VariableFrame.prototype.getVar = function (name) {
return '';
}
throw new Error(
- 'a variable of name \''
+ localize('a variable of name \'')
+ name
- + '\'\ndoes not exist in this context'
+ + localize('\'\ndoes not exist in this context')
);
};