[lib] Add trace error to internal errors in vsc_mgmt_backup().
authorMaximilian Wilhelm <max@rfc2324.org>
Sat, 28 Nov 2009 07:07:14 +0000 (08:07 +0100)
committerMaximilian Wilhelm <max@rfc2324.org>
Sat, 28 Nov 2009 07:07:14 +0000 (08:07 +0100)
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

lib/core.c

index 5291f9b..dcf9b10 100644 (file)
@@ -561,9 +561,17 @@ vsc_mgmt_backup (struct VscError *error, const char *filename)
 
        /* Backup data backend */
        _vsc_mgmt_data_backup (error, fp);
+       if (error->occured) {
+               VSC__APPEND_ERROR0 (error, VSC__ERROR_CODE__TRACE);
+               goto unlock;
+       }
 
        /* Backup network backend */
        _vsc_mgmt_network_backup (error, fp);
+       if (error->occured) {
+               VSC__APPEND_ERROR0 (error, VSC__ERROR_CODE__TRACE);
+               goto unlock;
+       }
 
        fprintf (fp, "</libvscmgmt>\n");