Permalink
Browse files

print error stack on api failures

  • Loading branch information...
jairajs89 committed Apr 30, 2013
1 parent 75e8e72 commit 7a1e316cb959c548727aff5266544695fe7362c0
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 zerver.js
View
@@ -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",
View
@@ -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;
}

0 comments on commit 7a1e316

Please sign in to comment.