kopia lustrzana https://github.com/backface/turtlestitch
add localization to unknown variable error
rodzic
5f3279990b
commit
dda2d48f16
|
@ -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')
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue