summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-11 21:04:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-11 21:53:29 -0700
commit4dfaccccb3186f7d223892bc473e7e0148473456 (patch)
tree546ebcce08b0eb4a4e872035c1f10fe067a5cc25
parenta55fa0ea9c0618c5ab65ca9efbbfd2eb363b51dd (diff)
downloadsubsurface-4dfaccccb3186f7d223892bc473e7e0148473456.tar.gz
Report error string for libsoup connection to divelogs.de
Just reporting a default string that something went wrong is kind of pointless... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--divelist-gtk.c2
-rw-r--r--packaging/windows/subsurface.nsi.in1
-rw-r--r--webservice.c2
3 files changed, 4 insertions, 1 deletions
diff --git a/divelist-gtk.c b/divelist-gtk.c
index 1af9ff321..e46fb34b9 100644
--- a/divelist-gtk.c
+++ b/divelist-gtk.c
@@ -1478,7 +1478,7 @@ static void upload_dives_divelogs(const gboolean selected)
}
zip_close(zip);
if (!divelogde_upload(tempfile, &error)) {
- error = strdup(_("Communication error with divelogs.de"));
+ /* error = strdup(_("Communication error with divelogs.de")); */
type = GTK_MESSAGE_ERROR;
} else {
/* The upload status XML message should be parsed
diff --git a/packaging/windows/subsurface.nsi.in b/packaging/windows/subsurface.nsi.in
index 548b6cc7a..f27f7207e 100644
--- a/packaging/windows/subsurface.nsi.in
+++ b/packaging/windows/subsurface.nsi.in
@@ -138,6 +138,7 @@ Section
File dll\libsoup-2.4-1.dll
File dll\libosmgpsmap-2.dll
File dll\libsqlite3-0.dll
+ File dll\libgnutls-26.dll
File subsurface.ico
File /r share
diff --git a/webservice.c b/webservice.c
index e582ad259..580880aa5 100644
--- a/webservice.c
+++ b/webservice.c
@@ -388,6 +388,8 @@ int divelogde_upload(char *fn, char **error)
if (SOUP_STATUS_IS_SUCCESSFUL(msg->status_code)) {
*error = strdup(msg->response_body->data);
ret = TRUE;
+ } else {
+ *error = strdup(msg->reason_phrase);
}
soup_session_abort(session);
g_object_unref(G_OBJECT(msg));