check the return value of error handling function 

- 2.23.0