Use the errors hash if an InvalidParameters exception is caught
Remove the errors handling part as it is not needed anymore