Commit 63bbd768 authored by Stefan Tauner's avatar Stefan Tauner
Browse files

fiji_ee_gui: fix error message if settings cannot be loaded

parent 90df4645
......@@ -237,11 +237,12 @@ sub main {
my $filename = $settings_filename;
my ($tmp_settings, $warn) = FIJI::Settings->new('setup', $filename);
if (defined($warn)) {
my $msg = "settings file $filename could not be loaded correctly: $tmp_settings";
my $msg = "Settings file $filename could not be loaded correctly.";
$msg .= "\n$warn" if (defined($warn));
$logger->error($msg);
my $d = $self->{'mw'}->FIJIModalDialog(-image => (!defined($tmp_settings) ? Tk::FIJIUtils::error_image($self->{'mw'}) : Tk::FIJIUtils::alert_image($self->{'mw'})),
-wraplength => "200",
-text => $warn,
-text => $msg,
-title => 'Open FIJI Settings failed!',
);
$d->Show();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment