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",
|
"name": "joplin",
|
||||||
"version": "0.10.53",
|
"version": "0.10.55",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
],
|
],
|
||||||
"owner": "Laurent Cozic"
|
"owner": "Laurent Cozic"
|
||||||
},
|
},
|
||||||
"version": "0.10.53",
|
"version": "0.10.55",
|
||||||
"bin": {
|
"bin": {
|
||||||
"joplin": "./main.js"
|
"joplin": "./main.js"
|
||||||
},
|
},
|
||||||
|
@ -45,6 +45,8 @@ class Logger {
|
|||||||
if (typeof object === 'object') {
|
if (typeof object === 'object') {
|
||||||
if (object instanceof Error) {
|
if (object instanceof Error) {
|
||||||
output = object.toString();
|
output = object.toString();
|
||||||
|
if (object.code) output += "\nCode: " + object.code;
|
||||||
|
if (object.request) output += "\nRequest: " + object.request;
|
||||||
if (object.stack) output += "\n" + object.stack;
|
if (object.stack) output += "\n" + object.stack;
|
||||||
} else {
|
} else {
|
||||||
output = JSON.stringify(object);
|
output = JSON.stringify(object);
|
||||||
|
Loading…
Reference in New Issue
Block a user