print error message in one line
This commit is contained in:
@ -4430,11 +4430,10 @@ int Variable::labelmap_function(char *word, char *contents, Tree **tree,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!atom->labelmapflag)
|
if (!atom->labelmapflag)
|
||||||
print_var_error(FLERR,"Invalid type label in "
|
print_var_error(FLERR,"Invalid type label in variable formula",ivar);
|
||||||
"variable formula",ivar);
|
|
||||||
|
|
||||||
int value;
|
int value;
|
||||||
std::string typestr = contents;
|
std::string typestr(contents);
|
||||||
|
|
||||||
if (strcmp(word,"label") == 0) {
|
if (strcmp(word,"label") == 0) {
|
||||||
value = atom->find_label(typestr,Atom::ATOM);
|
value = atom->find_label(typestr,Atom::ATOM);
|
||||||
@ -4453,8 +4452,7 @@ int Variable::labelmap_function(char *word, char *contents, Tree **tree,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (value == -1)
|
if (value == -1)
|
||||||
print_var_error(FLERR,"Invalid type label in "
|
print_var_error(FLERR,"Invalid type label in variable formula",ivar);
|
||||||
"variable formula",ivar);
|
|
||||||
|
|
||||||
// save value in tree or on argstack
|
// save value in tree or on argstack
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user