diff --git a/authentic-init.pl b/authentic-init.pl
index 685bc874a..344af8c32 100644
--- a/authentic-init.pl
+++ b/authentic-init.pl
@@ -162,9 +162,10 @@ sub embed_favicon
$manifest_contents =~ s/\%desc\%/$manifest_desc/;
$manifest_contents =~ s/\%prod\%/$product_name/g;
$manifest_contents =~ s/\%color\%/$theme_user_color/;
- $main::ignore_errors = 1;
- write_file_contents("$theme_config_dir/manifest-$product_name.json", $manifest_contents) if (-w $theme_config_dir);
- $main::ignore_errors = 0;
+ eval {
+ $main::error_must_die = 1;
+ write_file_contents("$theme_config_dir/manifest-$product_name.json", $manifest_contents) if (-w $theme_config_dir);
+ };
print ' ' . "\n";
print ' $text\n";
}
-sub theme_error {
- my $error_what = ($main::whatfailed ? "$main::whatfailed : " : "");
+sub theme_error
+{
+ my $error_what = ($main::whatfailed ? "$main::whatfailed : " : "");
my $error_message = join(", ", @_);
- my $error = html_escape(html_strip(($error_what . $error_message)));
+ my $error = html_escape(html_strip(($error_what . $error_message)));
print ui_alert_box("$error", 'danger-fatal', undef, 1);
}