diff --git a/source/config.js b/source/config.js
index <HASH>..<HASH> 100644
--- a/source/config.js
+++ b/source/config.js
@@ -207,9 +207,3 @@ Object.defineProperty(Error.prototype, 'toJSON', {
   },
   configurable: true
 });
-
-Object.defineProperty(Error.prototype, 'toString', {
-  value: function() {
-    return 'Message: ' + this.message + '\n' + this.stack;
-  }
-});
diff --git a/source/git-api.js b/source/git-api.js
index <HASH>..<HASH> 100644
--- a/source/git-api.js
+++ b/source/git-api.js
@@ -111,7 +111,13 @@ exports.registerApi = function(env) {
       }).catch(function(err) {
         res.status(400).json(err);
 
-          console.error(err);
+        if (err instanceof Error) {
+           console.error('Unhandled error: ' + err.message);
+           console.error(err.stack);
+         } else {
+           console.error('Unhandled error');
+           console.error(err);
+         }
       });
   }
revert `Error.prototype.toString` override

it does not work in Node.js <I>