Add context to Error::ParsingIncomplete

This commit is contained in:
Oliver Hamlet
2024-05-02 20:54:56 +01:00
parent 848747e07c
commit c21391568c
3 changed files with 26 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ pub fn handle_error(err: Error) -> c_int {
fn map_error(err: &Error) -> c_int {
match err {
Error::ParsingIncomplete => LCI_ERROR_PARSING_ERROR,
Error::ParsingIncomplete(_) => LCI_ERROR_PARSING_ERROR,
Error::UnconsumedInput(_) => LCI_ERROR_PARSING_ERROR,
Error::ParsingError(_, _) => LCI_ERROR_PARSING_ERROR,
Error::PeParsingError(_, _) => LCI_ERROR_PE_PARSING_ERROR,