diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-23 16:01:43 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-23 16:01:59 -0400 |
commit | b39ab78a8cd15d93dad3e4f8819bb475f7a56be8 (patch) | |
tree | 7cbcb10e4184932f6e70912d83cc56e407038f54 | |
parent | 5a051d70e692ddb720b7e88f8148864f89b11ffa (diff) | |
download | pfsense-packages-b39ab78a8cd15d93dad3e4f8819bb475f7a56be8.tar.gz pfsense-packages-b39ab78a8cd15d93dad3e4f8819bb475f7a56be8.tar.bz2 pfsense-packages-b39ab78a8cd15d93dad3e4f8819bb475f7a56be8.zip |
Show errors when they occur
-rw-r--r-- | config/autoconfigbackup/autoconfigbackup.inc | 1 | ||||
-rw-r--r-- | config/autoconfigbackup/autoconfigbackup.php | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup.inc b/config/autoconfigbackup/autoconfigbackup.inc index 68756bef..4522abda 100644 --- a/config/autoconfigbackup/autoconfigbackup.inc +++ b/config/autoconfigbackup/autoconfigbackup.inc @@ -214,7 +214,6 @@ function upload_config($reasonm = "") { } else { log_error("No https://portal.pfsense.org backup required."); } - } } 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); ?> </td> </tr> |