aboutsummaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_action.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_action.c')
-rw-r--r--src/anastasis/anastasis-gtk_action.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/anastasis/anastasis-gtk_action.c b/src/anastasis/anastasis-gtk_action.c
index 984fef5..3156415 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -3291,6 +3291,8 @@ AG_action_cb (void *cls,
#endif
if (TALER_EC_NONE != error_code)
{
+ /* TODO: maybe also render 'detail'
+ if present in state? */
AG_error ("Error #%d: %s\n",
(int) error_code,
TALER_ErrorCode_get_hint (error_code));
@@ -3300,7 +3302,10 @@ AG_action_cb (void *cls,
return;
}
}
- else
+ if ( (NULL != json_object_get (response,
+ "backup_state")) ||
+ (NULL != json_object_get (response,
+ "recovery_state")) )
{
json_decref (AG_redux_state);
AG_stop_long_action ();