Fixed incorrect error_reason() type specification