Updated error message

This commit is contained in:
Uwe Seimet 2021-08-29 18:58:10 +02:00
parent 67d73da898
commit 8fc8531b5b
5 changed files with 7 additions and 7 deletions

View File

@ -62,7 +62,7 @@ void SASIHD::Open(const Filepath& path)
// Open as read-only
Fileio fio;
if (!fio.Open(path, Fileio::ReadOnly)) {
throw io_exception("Can't open hard disk file read-only");
throw io_exception("Can't open hard disk file");
}
// Get file size

View File

@ -304,7 +304,7 @@ void SCSICD::Open(const Filepath& path)
// Open as read-only
Fileio fio;
if (!fio.Open(path, Fileio::ReadOnly)) {
throw file_not_found_exception("Can't open CD-ROM file read-only");
throw file_not_found_exception("Can't open CD-ROM file");
}
// Close and transfer for physical CD access
@ -377,7 +377,7 @@ void SCSICD::OpenIso(const Filepath& path)
// Open as read-only
Fileio fio;
if (!fio.Open(path, Fileio::ReadOnly)) {
throw io_exception("Can't open ISO CD-ROM file read-only");
throw io_exception("Can't open ISO CD-ROM file");
}
// Get file size
@ -464,7 +464,7 @@ void SCSICD::OpenPhysical(const Filepath& path)
// Open as read-only
Fileio fio;
if (!fio.Open(path, Fileio::ReadOnly)) {
throw io_exception("Can't open CD-ROM file read-only");
throw io_exception("Can't open CD-ROM file");
}
// Get size

View File

@ -64,7 +64,7 @@ void SCSIHD::Open(const Filepath& path)
// Open as read-only
Fileio fio;
if (!fio.Open(path, Fileio::ReadOnly)) {
throw file_not_found_exception("Can't open hard disk file read-only");
throw file_not_found_exception("Can't open hard disk file");
}
// Get file size

View File

@ -72,7 +72,7 @@ void SCSIHD_NEC::Open(const Filepath& path)
// Open as read-only
Fileio fio;
if (!fio.Open(path, Fileio::ReadOnly)) {
throw io_exception("Can't open hard disk file read-only");
throw io_exception("Can't open hard disk file");
}
// Get file size

View File

@ -48,7 +48,7 @@ void SCSIMO::Open(const Filepath& path)
Fileio fio;
if (!fio.Open(path, Fileio::ReadOnly)) {
throw file_not_found_exception("Can't open MO file read-only");
throw file_not_found_exception("Can't open MO file");
}
// Get file size