Show error message box when failed to save file

For #390
This commit is contained in:
Yuya Ochiai
2017-04-27 23:33:20 +09:00
parent 95c574eadc
commit 4c30d23ce9
2 changed files with 5 additions and 1 deletions

View File

@@ -327,6 +327,10 @@ allowProtocolDialog.init(mainWindow);
ipcMain.on('download-url', (event, URL) => {
downloadURL(mainWindow, URL, (err) => {
if (err) {
dialog.showMessageBox(mainWindow, {
type: 'error',
message: err.toString()
});
console.log(err);
}
});