libvideosite: Print config save status message
authorRalf Ertzinger <ralf@skytale.net>
Mon, 6 May 2013 17:44:25 +0000 (19:44 +0200)
committerRalf Ertzinger <ralf@skytale.net>
Mon, 6 May 2013 17:44:25 +0000 (19:44 +0200)
libvideosite.pm

index c0d4807..8791c64 100644 (file)
@@ -523,7 +523,11 @@ sub _expand_url_shortener {
 # Save the config to durable storage
 #
 sub _cmd_save {
-    $remote_api->{config_save}->();
+    if ($remote_api->{config_save}->()) {
+        _io("Config saved");
+    } else {
+        _io(sprintf("%sConfig save failed%s", _colorpair("*red"), _colorpair()));
+    }
 }
 
 #