summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
authordeva <deva>2008-06-04 08:16:12 +0000
committerdeva <deva>2008-06-04 08:16:12 +0000
commit294ed0c031072489f520c90e373b2f24aa16ed8c (patch)
tree5c7629db626d308a2da25389a04626eb70056150 /server/src/server.cc
parent39bd5c058ea842db10fc56ee153ec338e0d24f0f (diff)
Introduced the errorbox to communicate server errors to the client.
Diffstat (limited to 'server/src/server.cc')
-rw-r--r--server/src/server.cc19
1 files changed, 8 insertions, 11 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index a896102..9229f28 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -51,17 +51,14 @@ static std::string error_box(std::string message)
{
std::string errorbox;
- errorbox += " <course name=\"error\">\n";
- errorbox += " <macro name=\"error\">\n";
- errorbox += " <window caption=\"ERROR!\" height=\"240\" layout=\"vbox\" "
- "name=\"err\" width=\"320\">\n";
- errorbox += " <textedit name=\"errorlabel\" value=\"";
- errorbox += message;
- errorbox += "\"/>\n";
- errorbox += " <button action=\"cancel\" caption=\"Luk\" name=\"cancel\"/>\n";
- errorbox += " </window>\n";
- errorbox += " </macro>\n";
- errorbox += " </course>\n";
+ errorbox += " <course name=\"error\">\n";
+ errorbox += " <macro name=\"error\">\n";
+ errorbox += " <window caption=\"ERROR!\" height=\"240\" layout=\"vbox\" name=\"err\" width=\"320\">\n";
+ errorbox += " <textedit name=\"errorlabel\" value=\"" + message + "\"/>\n";
+ errorbox += " <button action=\"cancel\" caption=\"Luk\" name=\"cancel\"/>\n";
+ errorbox += " </window>\n";
+ errorbox += " </macro>\n";
+ errorbox += " </course>\n";
return errorbox;
}