3686: change error type