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:
parent
52f25c26d2
commit
31bfa72bca
2
CliClient/package-lock.json
generated
2
CliClient/package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "joplin",
|
||||
"version": "0.10.53",
|
||||
"version": "0.10.55",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -18,7 +18,7 @@
|
||||
],
|
||||
"owner": "Laurent Cozic"
|
||||
},
|
||||
"version": "0.10.53",
|
||||
"version": "0.10.55",
|
||||
"bin": {
|
||||
"joplin": "./main.js"
|
||||
},
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user