Adding a check for the error code of Metis.
Description
Adding a check for the error code of Metis.
Closes #412 (closed) .
News snippet
Adding a check for the error code of Metis.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.