I am using a library that throws a reasonable error when called upen and completes the desired action such that my outputs are as expected. However, as other people will use the script, I think the error might be misleading since it's not a problem. I have supressed it using the following command within the script:
exec 2> /dev/null
The problem is that this throws all of the errors to the null directory, thus not printing any other error that might occur.
What I am looking for is a command that can remove errors raised by specific libraries from showing up on the console, allowing others to appear naturally.