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"; } }