Skip to content

Commit

Permalink
error handling 💄
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Sep 10, 2019
1 parent 55825e9 commit 6ccd016
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vs/workbench/services/textfile/common/textFileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ export abstract class TextFileService extends Disposable implements ITextFileSer

// since a backup did not happen, we have to confirm for the dirty files now
return this.confirmBeforeShutdown();
}, errors => {
const firstError = errors[0];
this.notificationService.error(nls.localize('files.backup.failSave', "Files that are dirty could not be written to the backup location (Error: {0}). Try saving your files first and then exit.", firstError.message));
}, error => {
this.notificationService.error(nls.localize('files.backup.failSave', "Files that are dirty could not be written to the backup location (Error: {0}). Try saving your files first and then exit.", error.message));

return true; // veto, the backups failed
});
Expand Down

0 comments on commit 6ccd016

Please sign in to comment.