diff --git a/index.js b/index.js index 05dbff2..58c1df2 100644 --- a/index.js +++ b/index.js @@ -193,7 +193,7 @@ function registerListener(session, options, callback = () => {}) { module.exports = (options = {}) => { app.on('session-created', session => { registerListener(session, options, (error, _) => { - if (error) { + if (error && !(error instanceof CancelError)) { const errorTitle = options.errorTitle || 'Download Error'; dialog.showErrorBox(errorTitle, error.message); }