fix date calc
[gitlive] / XObject.js
index 8a8279e..8f1e30d 100644 (file)
@@ -197,13 +197,19 @@ XObject.prototype = {
            
         }
         if (!this.el && typeof(this.xtype) == 'object') {
+            
             XObject.log("obj?"  + XObject.keys(this.config).join(','));
             try {
                 this.el = new (this.xtype)(this.config);
             } catch(e) {
+                print(JSON.stringify(e,null,4));
+                print(JSON.stringify(this.config,null,4));
+                print(e.stack);
+                
                  throw {
-                name: "ArgumentError", 
-                message :"Error creating object from xtype(object)";
+                    name: "ArgumentError", 
+                    message :"Error creating object from xtype(object)"
+                 };
             }