diff options
author | deva <deva> | 2008-06-04 08:16:12 +0000 |
---|---|---|
committer | deva <deva> | 2008-06-04 08:16:12 +0000 |
commit | 294ed0c031072489f520c90e373b2f24aa16ed8c (patch) | |
tree | 5c7629db626d308a2da25389a04626eb70056150 /server/src/server.cc | |
parent | 39bd5c058ea842db10fc56ee153ec338e0d24f0f (diff) |
Introduced the errorbox to communicate server errors to the client.
Diffstat (limited to 'server/src/server.cc')
-rw-r--r-- | server/src/server.cc | 19 |
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; } |