From b39ab78a8cd15d93dad3e4f8819bb475f7a56be8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 23 Aug 2009 16:01:43 -0400 Subject: Show errors when they occur --- config/autoconfigbackup/autoconfigbackup.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/autoconfigbackup/autoconfigbackup.php') diff --git a/config/autoconfigbackup/autoconfigbackup.php b/config/autoconfigbackup/autoconfigbackup.php index 0af10b31..116bb4bd 100644 --- a/config/autoconfigbackup/autoconfigbackup.php +++ b/config/autoconfigbackup/autoconfigbackup.php @@ -230,6 +230,8 @@ EOF; $savemsg = "Unable to revert to the selected configuration."; } print_info_box($savemsg); + } else { + log_error("There was an error when restoring the AutoConfigBackup item"); } unlink("/tmp/config_restore.xml"); } @@ -314,6 +316,8 @@ EOF; if($ds_split[2] && $ds_split[0]) $confvers[] = $tmp_array; } + if ($input_errors) + print_input_errors($input_errors); ?> -- cgit v1.2.3