diff options
Diffstat (limited to 'server/src/templateparser.cc')
-rw-r--r-- | server/src/templateparser.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc index 04650ca..c67ba63 100644 --- a/server/src/templateparser.cc +++ b/server/src/templateparser.cc @@ -45,6 +45,8 @@ #include <errno.h> +#include "exception.h" + void TemplateParser::error(const char* fmt, ...) { // TODO: Throw exception here. @@ -57,6 +59,8 @@ void TemplateParser::error(const char* fmt, ...) va_end(argp); fprintf(stderr, "\n"); + + throw Exception("Error in TemplateParser"); } TemplateParser::TemplateParser(std::string course) |