From 39bd5c058ea842db10fc56ee153ec338e0d24f0f Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 4 Jun 2008 08:16:12 +0000 Subject: Introduced the errorbox to communicate server errors to the client. --- server/src/templateparser.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/src/templateparser.cc') 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 +#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) -- cgit v1.2.3