Skip to content

Commit

Permalink
improved returned error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
guustnieuwenhuis committed May 1, 2012
1 parent 69ebff8 commit 003dd8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/main.cfc
Expand Up @@ -40,7 +40,7 @@ component
catch(any ex) {
local.response = StructNew();
local.response.type = "error";
local.response.message = "Something went wrong...";
local.response.message = "Something went wrong... #ex.message#";
local.response.progress = "0%";
WSPublish(rc.channel,local.response);
WriteLog(type="Error", file="myapp", text="[#ex.type#] #ex.message# #ex.detail#");
Expand Down Expand Up @@ -128,7 +128,7 @@ component
catch(any ex) {
local.response = StructNew();
local.response.type = "error";
local.response.message = "Something went wrong...";
local.response.message = "Something went wrong... #ex.message#";
local.response.progress = "0%";
WSSendMessage(serializeJSON(local.response));
WriteLog(type="Error", file="myapp", text="[#ex.type#] #ex.message# #ex.detail#");
Expand Down

0 comments on commit 003dd8d

Please sign in to comment.