diff --git a/lib/gui/os/dialog/services/dialog.js b/lib/gui/os/dialog/services/dialog.js index 5c2b9101..91b1b005 100644 --- a/lib/gui/os/dialog/services/dialog.js +++ b/lib/gui/os/dialog/services/dialog.js @@ -107,7 +107,18 @@ module.exports = function($q, SupportedFormatsModel) { }); const message = description || error.stack || JSON.stringify(error) || ''; - electron.remote.dialog.showErrorBox(title, message); + + // Ensure the parameters are strings to prevent the following + // types of obscure errors: + // + // Error: Could not call remote function ''. + // Check that the function signature is correct. + // Underlying error: + // Error processing argument at index 0, conversion failure + // + // This can be thrown if for some reason, either `title` or `message` + // are not strings. + electron.remote.dialog.showErrorBox(title.toString(), message.toString()); }; };