avoid exception when having a command fail due to an empty string
This commit is contained in:
@ -227,7 +227,7 @@ void Input::file()
|
||||
|
||||
// execute the command
|
||||
|
||||
if (execute_command())
|
||||
if (execute_command() && line)
|
||||
error->all(FLERR,fmt::format("Unknown command: {}",line));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user