avoid exception when having a command fail due to an empty string

This commit is contained in:
Axel Kohlmeyer
2020-07-07 09:51:39 -04:00
parent 40e59b27a7
commit d0c544224f

View File

@ -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));
}
}