[FIX] previous 'forgot now' error message was a bit crappy

bzr revid: fva@openerp.com-20121010104433-cb03lb11fi15qrzd
This commit is contained in:
Frédéric van der Essen
2012-10-10 12:44:33 +02:00
parent 41f16f85d6
commit 21dcc15a2c
+1 -1
View File
@@ -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