|
|
@ -1,6 +1,7 @@
|
|
|
|
const isFunction = require('lodash/isFunction');
|
|
|
|
const isFunction = require('lodash/isFunction');
|
|
|
|
|
|
|
|
|
|
|
|
const Attachment = require('./attachment');
|
|
|
|
const Attachment = require('./attachment');
|
|
|
|
|
|
|
|
const Errors = require('./errors');
|
|
|
|
const SchemaVersion = require('./schema_version');
|
|
|
|
const SchemaVersion = require('./schema_version');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -110,8 +111,7 @@ exports._withSchemaVersion = (schemaVersion, upgrade) => {
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
console.log(
|
|
|
|
console.log(
|
|
|
|
'Message._withSchemaVersion: error:',
|
|
|
|
'Message._withSchemaVersion: error:',
|
|
|
|
// TODO: Use `Errors.toLogFormat`:
|
|
|
|
Errors.toLogFormat(error)
|
|
|
|
error && error.stack ? error.stack : error
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
return message;
|
|
|
|
return message;
|
|
|
|
}
|
|
|
|
}
|
|
|
|