mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Use Errors.toLogFormat
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const isFunction = require('lodash/isFunction');
|
||||
|
||||
const Attachment = require('./attachment');
|
||||
const Errors = require('./errors');
|
||||
const SchemaVersion = require('./schema_version');
|
||||
|
||||
|
||||
@@ -110,8 +111,7 @@ exports._withSchemaVersion = (schemaVersion, upgrade) => {
|
||||
} catch (error) {
|
||||
console.log(
|
||||
'Message._withSchemaVersion: error:',
|
||||
// TODO: Use `Errors.toLogFormat`:
|
||||
error && error.stack ? error.stack : error
|
||||
Errors.toLogFormat(error)
|
||||
);
|
||||
return message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user