bugfix: invalid error number was logged