1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

More info in case of error

This commit is contained in:
Laurent Cozic 2017-10-25 21:23:48 +01:00
parent 52f25c26d2
commit 31bfa72bca
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "joplin",
"version": "0.10.53",
"version": "0.10.55",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -18,7 +18,7 @@
],
"owner": "Laurent Cozic"
},
"version": "0.10.53",
"version": "0.10.55",
"bin": {
"joplin": "./main.js"
},

View File

@ -45,6 +45,8 @@ class Logger {
if (typeof object === 'object') {
if (object instanceof Error) {
output = object.toString();
if (object.code) output += "\nCode: " + object.code;
if (object.request) output += "\nRequest: " + object.request;
if (object.stack) output += "\n" + object.stack;
} else {
output = JSON.stringify(object);