improve error message
This commit is contained in:
@ -613,7 +613,7 @@ void Variable::set(int narg, char **arg)
|
|||||||
|
|
||||||
// unrecognized variable style
|
// unrecognized variable style
|
||||||
|
|
||||||
} else error->all(FLERR,"Unknown variable keyword: {}", arg[1]);
|
} else error->all(FLERR,"Unknown variable style: {}", arg[1]);
|
||||||
|
|
||||||
// set name of variable, if not replacing one flagged with replaceflag
|
// set name of variable, if not replacing one flagged with replaceflag
|
||||||
// name must be all alphanumeric chars or underscores
|
// name must be all alphanumeric chars or underscores
|
||||||
|
|||||||
@ -206,7 +206,7 @@ TEST_F(VariableTest, CreateDelete)
|
|||||||
TEST_FAILURE(".*ERROR: Invalid variable loop argument: -1.*",
|
TEST_FAILURE(".*ERROR: Invalid variable loop argument: -1.*",
|
||||||
command("variable dummy loop -1"););
|
command("variable dummy loop -1"););
|
||||||
TEST_FAILURE(".*ERROR: Illegal variable loop command.*", command("variable dummy loop 10 1"););
|
TEST_FAILURE(".*ERROR: Illegal variable loop command.*", command("variable dummy loop 10 1"););
|
||||||
TEST_FAILURE(".*ERROR: Unknown variable keyword: xxx.*", command("variable dummy xxxx"););
|
TEST_FAILURE(".*ERROR: Unknown variable style: xxx.*", command("variable dummy xxxx"););
|
||||||
TEST_FAILURE(".*ERROR: Cannot redefine variable as a different style.*",
|
TEST_FAILURE(".*ERROR: Cannot redefine variable as a different style.*",
|
||||||
command("variable two string xxx"););
|
command("variable two string xxx"););
|
||||||
TEST_FAILURE(".*ERROR: Cannot redefine variable as a different style.*",
|
TEST_FAILURE(".*ERROR: Cannot redefine variable as a different style.*",
|
||||||
|
|||||||
Reference in New Issue
Block a user