Skip to content

Better error handling #2

@khklau

Description

@khklau

In normal userspace Rust code unrecoverable errors are handled by calling panic, but this is unacceptable when the Rust code is called as part of a foreign framework.

Specifically in the case of Apache2, the error handling in hooks is expected to consist of writing to the Apache2 error log and returning a status code. The error log is written to by calling the Apache2 C API function ap_log_error_ also requires unsafe wrapping and use of CString. Current error handling is verbose.

Replace it with something better for future use.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions