Added explicit errno reporting from error() API.