Skip to content

Commit

Permalink
Add new error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Oct 25, 2023
1 parent 5ebb461 commit b1ee89e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c/include/prima/prima.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ typedef enum
PRIMA_ASSERTION_FAILS = 101,
PRIMA_VALIDATION_FAILS = 102,
PRIMA_MEMORY_ALLOCATION_FAILS = 103,
PRIMA_NULL_OPTIONS = 200,
PRIMA_NULL_RESULT = 201,
PRIMA_NULL_OPTIONS = 110,
PRIMA_NULL_RESULT = 111,
} prima_rc;

/*
Expand Down
4 changes: 4 additions & 0 deletions c/prima.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ const char *prima_get_rc_string(const int rc)
return "Validation fails";
case PRIMA_MEMORY_ALLOCATION_FAILS:
return "Memory allocation failed";
case PRIMA_NULL_OPTIONS:
return "NULL option";
case PRIMA_NULL_RESULT:
return "NULL result";
default:
return "Invalid return code";
}
Expand Down

0 comments on commit b1ee89e

Please sign in to comment.