Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
[fix #5491914] Fix for client throwing an exception when a client con…
Browse files Browse the repository at this point in the history
…troller does an ac.error()
  • Loading branch information
add0n committed Jun 20, 2012
1 parent cbddb85 commit 99ce6cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/lib/app/autoload/mojito-client.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,12 @@ YUI.add('mojito-client', function(Y, NAME) {
mp.invoke(mp._action, opts, function(err, data, meta) {

if (err) {
throw new Error(err);
if (typeof cb === 'function') {
cb(new Error(err));
return;
} else {
throw new Error(err);
}
}

/*
Expand Down

0 comments on commit 99ce6cf

Please sign in to comment.