Add missing error handler
Merge pull request #145 from Versal/fix/missing-err-handler

Add missing error handler