mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:13:25 +00:00
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>
This commit is contained in:
parent
a55fa0ea9c
commit
4dfaccccb3
3 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue