diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-11 21:04:07 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-11 21:53:29 -0700 |
commit | 4dfaccccb3186f7d223892bc473e7e0148473456 (patch) | |
tree | 546ebcce08b0eb4a4e872035c1f10fe067a5cc25 /webservice.c | |
parent | a55fa0ea9c0618c5ab65ca9efbbfd2eb363b51dd (diff) | |
download | subsurface-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>
Diffstat (limited to 'webservice.c')
-rw-r--r-- | webservice.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |