Skip to content

Commit

Permalink
Error message change
Browse files Browse the repository at this point in the history
  • Loading branch information
ekelokorpi committed Jul 5, 2018
1 parent 962795c commit 97f254f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ var game = {
extend = 'Class';
}

if (!this[extend]) throw 'Class ' + extend + ' not found';
if (!this[extend]) throw 'createClass: Class ' + extend + ' not found for ' + name;

this[name] = this[extend].extend(content);
this[name]._name = name;
Expand Down

0 comments on commit 97f254f

Please sign in to comment.