jungfrau: new default to asic reg for chipv1.1, filtercells name change, wrongnumberof parameters message change

This commit is contained in:
2021-10-21 11:27:31 +02:00
parent f7a6160e67
commit 9b321d2ee1
5 changed files with 23 additions and 13 deletions

View File

@ -82,8 +82,13 @@ std::map<std::string, std::string> CmdProxy::GetDepreciatedCommands() {
}
void CmdProxy::WrongNumberOfParameters(size_t expected) {
if (expected == 0) {
throw RuntimeError("Command " + cmd +
" expected no parameter/s but got " +
std::to_string(args.size()) + "\n");
}
throw RuntimeError(
"Command " + cmd + " expected <=" + std::to_string(expected) +
"Command " + cmd + " expected >=" + std::to_string(expected) +
" parameter/s but got " + std::to_string(args.size()) + "\n");
}