diff options
| author | Frédéric van der Essen <fva@openerp.com> | 2012-10-10 12:44:33 +0200 |
|---|---|---|
| committer | Frédéric van der Essen <fva@openerp.com> | 2012-10-10 12:44:33 +0200 |
| commit | 21dcc15a2ca38725d963fd16f57f5c9f4b1c5afe (patch) | |
| tree | 38555123372d93d3287789701201ed83d9ed23bf /addons/web/static/src/js/corelib.js | |
| parent | 41f16f85d63c8e54954d206a46cdd10900199909 (diff) | |
[FIX] previous 'forgot now' error message was a bit crappy
bzr revid: fva@openerp.com-20121010104433-cb03lb11fi15qrzd
Diffstat (limited to 'addons/web/static/src/js/corelib.js')
| -rw-r--r-- | addons/web/static/src/js/corelib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/corelib.js b/addons/web/static/src/js/corelib.js index 21d593069e7..7a9af79b4fb 100644 --- a/addons/web/static/src/js/corelib.js +++ b/addons/web/static/src/js/corelib.js @@ -122,7 +122,7 @@ openerp.web.corelib = function(instance) { // The dummy class constructor function Class() { if(this.constructor !== instance.web.Class){ - throw new Error("You need a 'new' to instanciate an object"); + throw new Error("You can only instanciate objects with the 'new' operator"); return null; } // All construction is actually done in the init method |
