From 0ffb2b4884b8109f6f6666d15f2cb1643cdaec91 Mon Sep 17 00:00:00 2001 From: ala89 Date: Wed, 3 Jan 2024 18:26:33 +0100 Subject: [PATCH] Fix typo --- src/errors.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/errors.cpp b/src/errors.cpp index 229040f..0503704 100644 --- a/src/errors.cpp +++ b/src/errors.cpp @@ -32,7 +32,7 @@ string UserError::get_message(void) const { case ErrorType::ControlReachesEndOfNonVoidFn: return "Control reaches end of non-void function"; case ErrorType::UnexpectedReturn: return "Return not within a function"; - // Analysus + // Analysis case ErrorType::UnknownType: return "Unknown type '"+get(this->data)+"'"; case ErrorType::TypeNotCastable: return "Can't find an explicit cast to "+get(this->data)+"'"; case ErrorType::TypesNotComparable: return "Types not comparable"; @@ -51,6 +51,7 @@ string UserError::get_message(void) const { case ErrorType::UninitializedIdentifier: return "Accessing uninitialized identifier '"+get(this->data)+"'"; case ErrorType::DivisionByZero: return "Division by 0"; case ErrorType::ModuloByZero: return "Modulo by 0"; + default: return "Unknown error type"; } }