error messages

This commit is contained in:
Jacob Gissinger
2021-12-07 23:32:14 -05:00
parent de635cc68d
commit 83a978d69b
8 changed files with 91 additions and 42 deletions

View File

@ -107,7 +107,7 @@ void LabelMap::modify_lmap(int narg, char **arg)
if (isdigit(slabel[0]))
error->all(FLERR,"Type labels cannot start with a number");
if (search(slabel,(*labels_map)) != -1)
error->all(FLERR,"Type label already exists: types labels must be unique");
error->all(FLERR,"Type label already exists: type labels must be unique");
std::string &str = (*labels)[itype-1];
if (!str.empty()) (*labels_map).erase(str);
str = slabel;