Skip to content

Commit

Permalink
error: Add SC_EEXIST for dups
Browse files Browse the repository at this point in the history
Issue: 5748

This commit adds SC_EEXIST to be used for cases where an
item/resource/artifact with the same attributes already exists.
  • Loading branch information
jlucovsky committed Jul 24, 2023
1 parent 15174e5 commit 291e6ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/util-error.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const char * SCErrorToString(SCError err)
CASE_CODE(SC_ENOMEM);
CASE_CODE(SC_EINVAL);
CASE_CODE(SC_ELIMIT);
CASE_CODE(SC_EEXIST);

CASE_CODE (SC_ERR_MAX);
}
Expand Down
1 change: 1 addition & 0 deletions src/util-error.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ typedef enum {
SC_ENOMEM,
SC_EINVAL,
SC_ELIMIT,
SC_EEXIST,

SC_ERR_MAX
} SCError;
Expand Down

0 comments on commit 291e6ee

Please sign in to comment.