src/vs/workbench/contrib/files/browser/fileActions.ts/onError
function onError(notificationService: INotificationService, error: any): void {
	if (error.message === 'string') {
		error = error.message;
	}

	notificationService.error(toErrorMessage(error, false));
}