📄 code-error.html.tmpl
字号:
$output .= "\n The target type was neither <em>"; #line 233 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= "</em> nor <em>attachment</em>\n but rather <em>"; #line 234 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['variables', 0, 'target_type', 0]); &$filter($output); }; $output .= "</em>.\n "; } elsif ($stash->get('error') eq 'invalid_field_name') { $output .= "\n Can't use "; #line 238 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('field'); &$filter($output); }; $output .= " as a field name.\n"; } elsif ($stash->get('error') eq 'invalid_keyword_id') { $output .= "\n The keyword ID <em>"; #line 242 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('id'); &$filter($output); }; $output .= "</em> couldn't be\n found.\n "; } elsif ($stash->get('error') eq 'missing_bug_id') { $output .= "\n No "; #line 247 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['terms', 0, 'bug', 0]); $output .= " ID was given.\n "; } elsif ($stash->get('error') eq 'missing_series_id') { $output .= "\n Having inserted a series into the database, no series_id was returned for\n it. Series: "; #line 252 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['series', 0, 'category', 0]); &$filter($output); }; $output .= " / \n "; #line 253 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['series', 0, 'subcategory', 0]); &$filter($output); }; $output .= " / \n "; #line 254 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['series', 0, 'name', 0]); &$filter($output); }; $output .= ".\n "; } elsif ($stash->get('error') eq 'no_y_axis_defined') { $output .= "\n No Y axis was defined when creating report. The X axis is optional,\n but the Y axis is compulsory.\n "; } elsif ($stash->get('error') eq 'need_quipid') { $output .= "\n A valid quipid is needed.\n"; } elsif ($stash->get('error') eq 'request_queue_group_invalid') { $output .= "\n The group field <em>"; #line 267 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('group'); &$filter($output); }; $output .= "</em> is invalid.\n"; } elsif ($stash->get('error') eq 'report_axis_invalid') { $output .= "\n <em>"; #line 271 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('val'); &$filter($output); }; $output .= "</em> is not a valid value for \n "; #line 275 "template\en\default\global\code-error.html.tmpl" if ($stash->get('fld') eq 'x') { $output .= "the horizontal axis\n "; } elsif ($stash->get('fld') eq 'y') { $output .= "the vertical axis\n "; } elsif ($stash->get('fld') eq 'z') { $output .= "the multiple tables/images\n "; } else { $output .= "a report axis"; } $output .= " field.\n"; } elsif ($stash->get('error') eq 'token_generation_error') { $output .= "\n Something is seriously wrong with the token generation system.\n"; } elsif ($stash->get('error') eq 'template_error') { #line 282 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('template_error_msg'); &$filter($output); }; $output .= "\n"; } elsif ($stash->get('error') eq 'unable_to_retrieve_password') { $output .= "\n I was unable to retrieve your old password from the database.\n"; } elsif ($stash->get('error') eq 'undefined_field') { $output .= "\n Form field "; #line 290 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('field'); &$filter($output); }; $output .= " was not defined; "; #line 290 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['Param', [ 'browserbugmessage' ]]); $output .= "\n "; #line 294 "template\en\default\global\code-error.html.tmpl" if ($stash->get('field') eq 'knob') { $output .= "\n Check that the \"Leave as...\" radio button was selected."; } $output .= "\n"; } elsif ($stash->get('error') eq 'unknown_action') { #line 303 "template\en\default\global\code-error.html.tmpl" if ($stash->get('action')) { $output .= "\n Unknown action "; #line 298 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('action'); &$filter($output); }; $output .= "!"; } else { $output .= "\n I could not figure out what you wanted to do."; } $output .= "\n"; } else { #line 306 "template\en\default\global\code-error.html.tmpl" $stash->set('title', 'Internal error'); $output .= "\n An internal error has occured, but "; #line 307 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " doesn't know\n what <code>"; #line 308 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('error'); &$filter($output); }; $output .= "</code> means.\n\n If you are a "; #line 310 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " end-user seeing this message, please save\n this page and send it to "; #line 311 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['Param', [ 'maintainer' ]]); $output .= "."; } $output; }); $output .= "\n"; #line 316 "template\en\default\global\code-error.html.tmpl" if (!($stash->get('header_done'))) { #line 316 "template\en\default\global\code-error.html.tmpl" $output .= $context->process('global/header.html.tmpl'); } $output .= "\n\n<tt>\n <p>"; #line 321 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= " has suffered an internal error. Please save this page and send\n it to "; #line 322 "template\en\default\global\code-error.html.tmpl" $output .= $stash->get(['Param', [ 'maintainer' ]]); $output .= " with details of what you were doing at\n the time this message appeared.\n </p>\n <script type=\"text/javascript\"> <!--\n document.write(\"<p>URL: \" + \n document.location.href.replace(/&/g,\"&\")\n .replace(/</g,\"<\")\n .replace(/>/g,\">\") + \"</p>\");\n // -->\n </script>\n</tt>\n\n<table cellpadding=\"20\">\n <tr>\n <td bgcolor=\"#ff0000\">\n <font size=\"+2\">"; #line 339 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get('error_message'); &$filter($output); }; $output .= "\n </font>\n </td>\n </tr>\n</table>\n"; #line 354 "template\en\default\global\code-error.html.tmpl" if ($stash->get('variables')) { $output .= "\n <pre>\nVariables:"; #line 351 "template\en\default\global\code-error.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['variables', 0, 'keys', 0]); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'key'} = $value; $output .= "\n "; #line 351 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('key'); &$filter($output); }; $output .= ": "; #line 351 "template\en\default\global\code-error.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['variables', 0, $stash->get('key'), 0]); &$filter($output); }; ; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n </pre>"; } $output .= "\n"; #line 357 "template\en\default\global\code-error.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -