Remove function name from UserError exception messages
Currently, some exceptions of the type exception::UserError(...)
are passed the name of the function that generated them. This ends up with the message being directly passed to the user.
This is common in the file OStoreDB.cpp
.
Example:
[tape-local@ctaproductionfrontend02 ~]$ cta-admin repack ls -v L92340
In OStoreDB::getRepackInfo(): No repack request for this VID.
[tape-local@ctaproductionfrontend02 ~]$ cta-admin repack rm -v L92340
In OStoreDB::cancelRepack(): No repack request for this VID.
We have decided that exception::UserError()
exceptions in the OStoreDB.cpp
should not need to pass the function name back to the user.
Tasks:
- Find where the function name is included in the
exception::UserError()
exceptions. - Remove the function name from the
exception::UserError()
exceptions that are forwarded to the user.
For more info check: