clearer error messages

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28576 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2008-11-09 16:37:19 +00:00
parent aea6792976
commit 39dbc363ef
+2 -2
View File
@@ -1032,7 +1032,7 @@ RecorderWindow::UpdatePlayFile()
entry.GetRef(&ref);
fPlayFile = new BMediaFile(&ref); //, B_MEDIA_FILE_UNBUFFERED);
if ((err = fPlayFile->InitCheck()) < B_OK) {
ErrorAlert("get the file to play", err);
ErrorAlert("recognize this file as a media file", err);
delete fPlayFile;
fPlayFile = NULL;
RemoveCurrentSoundItem();
@@ -1056,7 +1056,7 @@ RecorderWindow::UpdatePlayFile()
}
if (!fPlayTrack) {
ErrorAlert("get the file to play", err);
ErrorAlert("find an audio track", err);
delete fPlayFile;
fPlayFile = NULL;
RemoveCurrentSoundItem();