Update error handling

This commit is contained in:
Uwe Seimet 2023-11-15 19:01:11 +01:00
parent 8e8c9400fd
commit 132a93765b
2 changed files with 5 additions and 4 deletions

View File

@ -97,9 +97,6 @@ void ScsiExec::ParseArguments(span<char*> args)
case 'f':
filename = optarg;
if (filename.empty()) {
throw parser_exception("Missing filename");
}
break;
case 'b':
@ -121,6 +118,10 @@ void ScsiExec::ParseArguments(span<char*> args)
}
}
if (filename.empty()) {
throw parser_exception("Missing filename");
}
if (target_lun == -1) {
target_lun = 0;
}

View File

@ -108,7 +108,7 @@ string piscsi_util::Banner(string_view app)
{
ostringstream s;
s << "SCSI Target Emulator PiSCSI " << app << "\n";
s << "SCSI Target/Initiator Emulator PiSCSI " << app << "\n";
s << "Version " << piscsi_get_version_string() << " (" << __DATE__ << ' ' << __TIME__ << ")\n";
s << "Powered by XM6 TypeG Technology / ";
s << "Copyright (C) 2016-2020 GIMONS\n";