Skip to content

Conversation

d-w-moore
Copy link
Contributor

Even nlohmann::json errors will be caught and logged in an informative
way, since the embedded message conveys their code and type.

Even nlohmann::json errors will be caught and logged in an informative
way, since the embedded message conveys their code and type.
@d-w-moore d-w-moore marked this pull request as draft March 30, 2022 16:59
rodsLog(LOG_ERROR,"Unknown error in FILE %s LINE %d FUNCTION %s ",
__FILE__,__LINE__,__FUNCTION__);
return ERROR(
SYS_NOT_SUPPORTED,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here about SYS_UNKNOWN_ERROR

rodsLog(LOG_ERROR,"std::exception (%s) in FILE %s LINE %d FUNCTION %s ",
_e.what(),__FILE__,__LINE__,__FUNCTION__);
return ERROR(
SYS_NOT_SUPPORTED,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here about SYS_INTERNAL_ERR

rodsLog(LOG_ERROR,"std::exception (%s) in FILE %s LINE %d FUNCTION %s ",
_e.what(),__FILE__,__LINE__,__FUNCTION__);
return ERROR(
SYS_NOT_SUPPORTED,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this SYS_INTERNAL_ERR? This is the convention I had been following when working on other things. If you feel this error code is more appropriate in this situation, then let's stick with that. :)

rodsLog(LOG_ERROR,"Unknown error in FILE %s LINE %d FUNCTION %s ",
__FILE__,__LINE__,__FUNCTION__);
return ERROR(
SYS_NOT_SUPPORTED,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this SYS_UNKNOWN_ERROR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants