67 |
|
bool result = i->second->setData(val); |
68 |
|
if (!result ) { |
69 |
|
std::stringstream ss; |
70 |
< |
ss << "Error in parsing " << keyword << ": expect " << i->second->getParamType() <<"\n"; |
70 |
> |
ss << "Error in parsing " << keyword << ": expected " << i->second->getParamType() <<"\n"; |
71 |
|
throw OOPSEException(ss.str()); |
72 |
|
} |
73 |
|
}else if (deprecatedKeywords_.find(keyword) != deprecatedKeywords_.end()){ |
74 |
< |
std::cout << keyword << " is deprecated\n"; |
74 |
> |
std::cout << keyword << " has been deprecated in OOPSE 3. Please update your .md file.\n"; |
75 |
|
}else { |
76 |
|
std::stringstream ss; |
77 |
< |
ss << keyword << " can not be recognized\n"; |
77 |
> |
ss << keyword << " is not a recognized keyword.\n"; |
78 |
|
throw OOPSEException(ss.str()); |
79 |
|
} |
80 |
|
} |
84 |
|
for (i = parameters_.begin(); i != parameters_.end(); ++i) { |
85 |
|
if (!i->second->isOptional() && i->second->empty()) { |
86 |
|
std::stringstream ss; |
87 |
< |
ss << i->second->getKeyword() << " must be set\n"; |
87 |
> |
ss << i->second->getKeyword() << " must be set.\n"; |
88 |
|
throw OOPSEException(ss.str()); |
89 |
|
} |
90 |
|
} |