mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-11-24 08:42:24 +02:00
Remove .toString() from disk error handling
For the most part, error messages look like: ```js { error: { errno: -2, code: 'ENOENT', syscall: 'stat', path: '/data/path/stuff/place' } } ``` But `toString()` just turns it into `[object Object]`, which is quite useless as a log message.
This commit is contained in:
parent
9e6247ae57
commit
6351986bfa
@ -116,7 +116,7 @@ export class DiskMangerWorker {
|
|||||||
|
|
||||||
return resolve(directory);
|
return resolve(directory);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return reject({error: err.toString()});
|
return reject({error: err});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user