Change curl-get utility to display error message instead of aborting on error.

git-svn-id: https://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk@1517424 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/modules/http/curl-get.cpp b/modules/http/curl-get.cpp
index 983dd20..96efcc7 100644
--- a/modules/http/curl-get.cpp
+++ b/modules/http/curl-get.cpp
@@ -35,8 +35,10 @@
 const bool testGet(const string& url, const string& ca = "", const string& cert = "", const string& key = "") {
     const CURLSession ch(ca, cert, key, "", 0);
     const failable<value> val = get(url, ch);
-    assert(hasContent(val));
-    cout << content(val) << endl;
+    if(!hasContent(val))
+        cerr << reason(val) << endl;
+    else
+        cout << content(val) << endl;
     return true;
 }