errorMessage=isWindows?nls.localize('binFailed',"Failed to delete using the Recycle Bin. Do you want to permanently delete instead?"):nls.localize('trashFailed',"Failed to delete using the Trash. Do you want to permanently delete instead?");
detailMessage=nls.localize('irreversible',"This action is irreversible!");
primaryButton=nls.localize({key:'deletePermanentlyButtonLabel',comment:['&& denotes a mnemonic']},"&&Delete Permanently");
}else{
errorMessage=toErrorMessage(error,false);
primaryButton=nls.localize({key:'retryButtonLabel',comment:['&& denotes a mnemonic']},"&&Retry");