1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 22:21:11 +02:00

Bug 2185 - Import2: Incorrect error message if file not found

This commit is contained in:
James Crook
2019-09-01 15:09:34 +01:00
parent 844778797a
commit 9a3bd94459

View File

@@ -669,6 +669,11 @@ bool Importer::Import(const FilePath &fName,
return false;
}
if( !wxFileExists(fName)){
errorMessage.Printf(_("File \"%s\" not found."), fName);
return false;
}
// we were not able to recognize the file type
errorMessage.Printf(_("Audacity did not recognize the type of the file '%s'.\nTry installing FFmpeg. For uncompressed files, also try File > Import > Raw Data."),fName);
}