aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-03-31 09:36:20 -0600
committerBen Burdette <bburdette@gmail.com>2020-03-31 09:36:20 -0600
commit09652f597cb44fbb452353f9eeaba2d9bc70a7f3 (patch)
tree2df2bd8c7ded99be33cd320d1d46c6292c21967b
parent28d073e810d5e692a4f6c57d23afc011e6fcc153 (diff)
enum style
-rw-r--r--src/libutil/error.hh4
-rw-r--r--tests/errors/main.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh
index 88980afb7..1acc70d9d 100644
--- a/src/libutil/error.hh
+++ b/src/libutil/error.hh
@@ -16,10 +16,10 @@ using std::endl;
namespace nix {
-enum ErrLevel
+typedef enum
{ elWarning
, elError
- };
+ } ErrLevel;
class ColumnRange {
public:
diff --git a/tests/errors/main.cc b/tests/errors/main.cc
index 39adc2ece..ffce334b7 100644
--- a/tests/errors/main.cc
+++ b/tests/errors/main.cc
@@ -40,7 +40,7 @@ int main()
printErrorInfo(StandardError()
.name("name")
- .description("description")
+ .description("error description")
.nohint()
);