Use named error number instead of unknown -1