Minor changes in debug output, added information
to error messages
This commit is contained in:
@@ -12,7 +12,7 @@ double lengthPrefactor(const std::string& unit) {
|
||||
} else if (unit == "mm") {
|
||||
return 1E-3;
|
||||
} else {
|
||||
ERROR("I dont know this length unit.");
|
||||
ERROR("I dont know this length unit: " + unit);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ double energyPrefactor(const std::string& unit) {
|
||||
} else if (unit == "J") {
|
||||
return 1 / SI::e;
|
||||
} else {
|
||||
ERROR("I dont know this energy unit.");
|
||||
ERROR("I dont know this energy unit: " + unit);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user