From 8ea257ad4dbfd2f51ff8d28f3743d5bb15ff8867 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Mon, 26 Mar 2018 19:04:38 -0400 Subject: [PATCH] Use double quotes for identifiers in error messages --- js/modules/messages_data_migrator.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/modules/messages_data_migrator.js b/js/modules/messages_data_migrator.js index 2df16dafff8..dc4bbd377f9 100644 --- a/js/modules/messages_data_migrator.js +++ b/js/modules/messages_data_migrator.js @@ -12,20 +12,20 @@ exports.processNext = async ({ upgradeMessageSchema, } = {}) => { if (!isFunction(BackboneMessage)) { - throw new TypeError('`BackboneMessage` (Whisper.Message) constructor is required'); + throw new TypeError('"BackboneMessage" (Whisper.Message) constructor is required'); } if (!isFunction(BackboneMessageCollection)) { - throw new TypeError('`BackboneMessageCollection` (Whisper.MessageCollection)' + + throw new TypeError('"BackboneMessageCollection" (Whisper.MessageCollection)' + ' constructor is required'); } if (!isNumber(count)) { - throw new TypeError('`count` is required'); + throw new TypeError('"count" is required'); } if (!isFunction(upgradeMessageSchema)) { - throw new TypeError('`upgradeMessageSchema` is required'); + throw new TypeError('"upgradeMessageSchema" is required'); } const startTime = Date.now(); @@ -66,12 +66,12 @@ const _saveMessage = ({ BackboneMessage } = {}) => (message) => { const _fetchMessagesRequiringSchemaUpgrade = async ({ BackboneMessageCollection, count } = {}) => { if (!isFunction(BackboneMessageCollection)) { - throw new TypeError('`BackboneMessageCollection` (Whisper.MessageCollection)' + + throw new TypeError('"BackboneMessageCollection" (Whisper.MessageCollection)' + ' constructor is required'); } if (!isNumber(count)) { - throw new TypeError('`count` is required'); + throw new TypeError('"count" is required'); } const collection = new BackboneMessageCollection();