Pman.Dialog.Image.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 23 Nov 2010 05:27:15 +0000 (13:27 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 23 Nov 2010 05:27:15 +0000 (13:27 +0800)
Pman.Dialog.Image.js

index 3aeee25..506d11e 100644 (file)
@@ -147,7 +147,11 @@ Pman.Dialog.Image = {
                                     
                                     if (act.type == 'submit') {
                                         Roo.log(act);
-                                        Ext.MessageBox.alert("Error", "Saving failed = fix errors and try again");
+                                        try {
+                                            Ext.MessageBox.alert("Error", act.errMessage);
+                                        } catch(e) {
+                                            Ext.MessageBox.alert("Error", "Saving failed = fix errors and try again");        
+                                        }
                                         return;
                                     }