Skip to content

Commit

Permalink
print error stack on api failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jairajs89 committed Apr 30, 2013
1 parent 75e8e72 commit 7a1e316
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author" : "Jairaj Sethi <j@jairaj.org> (http://jairaj.org/)",
"name" : "zerver",
"description" : "client-integrated webapp server",
"version" : "0.10.2",
"version" : "0.10.3",
"license" : "MIT" ,
"repository" : {
"type" : "git",
Expand Down
2 changes: 1 addition & 1 deletion zerver.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ function APIRequest (handler, pathname) {
val = api.apply(handler, args);
}
catch (err) {
console.error(err);
console.error(err && (err.stack || err.message));
errorCallback(err);
return;
}
Expand Down

0 comments on commit 7a1e316

Please sign in to comment.