From 291e6ee6951924e52d38551ed47f2ecbf31b2b18 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Wed, 14 Jun 2023 08:40:26 -0400 Subject: [PATCH] error: Add SC_EEXIST for dups Issue: 5748 This commit adds SC_EEXIST to be used for cases where an item/resource/artifact with the same attributes already exists. --- src/util-error.c | 1 + src/util-error.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/util-error.c b/src/util-error.c index 617ab161fe8f..01c2f9a01b73 100644 --- a/src/util-error.c +++ b/src/util-error.c @@ -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); } diff --git a/src/util-error.h b/src/util-error.h index 257dcc07c465..eaaf8cb34a2a 100644 --- a/src/util-error.h +++ b/src/util-error.h @@ -29,6 +29,7 @@ typedef enum { SC_ENOMEM, SC_EINVAL, SC_ELIMIT, + SC_EEXIST, SC_ERR_MAX } SCError;