Using correct error type