mirror of https://github.com/akuker/RASCSI.git
Update error handling
This commit is contained in:
parent
132a93765b
commit
1cffda409d
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#include "scsisexec_core.h"
|
||||
#include "scsiexec_core.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#include "scsisexec_core.h"
|
||||
#include "scsiexec_core.h"
|
||||
#include "hal/sbc_version.h"
|
||||
#include "hal/gpiobus_factory.h"
|
||||
#include "controllers/controller_manager.h"
|
||||
|
@ -122,6 +122,10 @@ void ScsiExec::ParseArguments(span<char*> args)
|
|||
throw parser_exception("Missing filename");
|
||||
}
|
||||
|
||||
if (target_id == -1) {
|
||||
throw parser_exception("Missing target ID");
|
||||
}
|
||||
|
||||
if (target_lun == -1) {
|
||||
target_lun = 0;
|
||||
}
|
Loading…
Reference in New Issue