Reworked error handling to propogate errors downward, especially when webgui.debug is set
This commit is contained in:
parent
b815228a1b
commit
e945a94c63
12 changed files with 132 additions and 110 deletions
|
|
@ -470,7 +470,7 @@ sub graph {
|
|||
|
||||
my $session = $self->session;
|
||||
|
||||
eval { local $SIG{'__DIE__'}; require GraphViz };
|
||||
eval { require GraphViz };
|
||||
if ($@) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -710,7 +710,7 @@ sub www_graph {
|
|||
|
||||
my $i18n = WebGUI::International->new($session, "Asset_Survey");
|
||||
|
||||
eval { local $SIG{'__DIE__'}; require GraphViz };
|
||||
eval { require GraphViz };
|
||||
if ($@) {
|
||||
return '<h1>' . $i18n->get('survey visualization') . '</h1>Survey Visualization requires the GraphViz module';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue