summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/queryhandlerpentominos.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/src/queryhandlerpentominos.cc b/server/src/queryhandlerpentominos.cc
index f70033d..ffa0946 100644
--- a/server/src/queryhandlerpentominos.cc
+++ b/server/src/queryhandlerpentominos.cc
@@ -233,7 +233,13 @@ QueryResult QueryHandlerPentominos::exec(Query &query)
int main()
{
TCPSocket s;
- s.connect("localhost", 11108);
+ try {
+ s.connect("localhost", 11108);
+ } catch(Exception &e) {
+ printf("ERROR: %s\n", e.what());
+ printf("A running instance of the artefact server in needed on localhost, port 11108 in order for this test to run.\n");
+ return 1;
+ }
QueryHandlerPentominos qh(&s, "2003791613");