better fault text

This commit is contained in:
iceman1001 2020-05-15 17:04:33 +02:00
parent 351a8d26af
commit 8c65649258

View file

@ -241,8 +241,11 @@ check_script:
// read script file
if (fgets(script_cmd_buf, sizeof(script_cmd_buf), current_cmdscriptfile()) == NULL) {
PrintAndLogEx(ERR, "Unexpected end, [%s]", current_cmdscriptfile());
if (!pop_cmdscriptfile())
break;
goto check_script;
} else {
prompt_ctx = PROXPROMPT_CTX_SCRIPTFILE;