From 03e220c689515a23e321c2524d3565b4fddd37bd Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 23 Nov 2010 13:27:15 +0800 Subject: [PATCH] Pman.Dialog.Image.js --- Pman.Dialog.Image.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.Image.js b/Pman.Dialog.Image.js index 3aeee25d..506d11ef 100644 --- a/Pman.Dialog.Image.js +++ b/Pman.Dialog.Image.js @@ -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; } -- 2.39.2