PageRenderTime 61ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/data/template/template/en/default/global/code-error.html.tmpl

https://github.com/andywiens/Bugzilla-Custom-CAS
Go Template | 2232 lines | 1730 code | 502 blank | 0 comment | 0 complexity | 188ff278369783d3bd10898ab77cb3df MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. use utf8;
  2. #------------------------------------------------------------------------
  3. # Compiled template generated by the Template Toolkit version 2.22
  4. #------------------------------------------------------------------------
  5. Template::Document->new({
  6. METADATA => {
  7. 'modtime' => '1297790525',
  8. 'name' => 'global/code-error.html.tmpl',
  9. },
  10. BLOCK => sub {
  11. my $context = shift || die "template sub called without context\n";
  12. my $stash = $context->stash;
  13. my $output = '';
  14. my $_tt_error;
  15. eval { BLOCK: {
  16. $output .= "\n\n";
  17. $output .= "\n\n";
  18. $output .= "\n";
  19. #line 35 "template/en/default/global/code-error.html.tmpl"
  20. $output .= $context->process('global/field-descs.none.tmpl');
  21. $output .= "\n";
  22. #line 37 "template/en/default/global/code-error.html.tmpl"
  23. $stash->set('title', 'Internal Error', 1);
  24. $output .= "\n";
  25. #line 488 "template/en/default/global/code-error.html.tmpl"
  26. # CAPTURE
  27. $stash->set('error_message', do {
  28. my $output = '';
  29. #line 487 "template/en/default/global/code-error.html.tmpl"
  30. if ($stash->get('error') eq 'attachment_local_storage_disabled') {
  31. #line 41 "template/en/default/global/code-error.html.tmpl"
  32. $stash->set('title', 'Local Storage Disabled');
  33. $output .= "\n You cannot store attachments locally. This feature is disabled.\n";
  34. }
  35. elsif ($stash->get('error') eq 'attachment_url_disabled') {
  36. #line 45 "template/en/default/global/code-error.html.tmpl"
  37. $stash->set('title', 'Attachment URL Disabled');
  38. $output .= "\n You cannot attach a URL. This feature is currently disabled.\n";
  39. }
  40. elsif ($stash->get('error') eq 'auth_invalid_email') {
  41. #line 49 "template/en/default/global/code-error.html.tmpl"
  42. $stash->set('title', 'Invalid Email Address');
  43. $output .= "\n We received an email address (<b>";
  44. #line 50 "template/en/default/global/code-error.html.tmpl"
  45. # FILTER
  46. $output .= do {
  47. my $output = '';
  48. my $_tt_filter = $context->filter('html')
  49. || $context->throw($context->error);
  50. $output .= $stash->get('addr');
  51. &$_tt_filter($output);
  52. };
  53. $output .= "</b>)\n that didn't pass our syntax checking for a legal email address,\n when trying to create or update your account.";
  54. #line 58 "template/en/default/global/code-error.html.tmpl"
  55. if ($stash->get('default')) {
  56. $output .= "\n A legal address must contain exactly one '\@',\n and at least one '.' after the \@.";
  57. }
  58. else {
  59. $output .= "\n ";
  60. #line 57 "template/en/default/global/code-error.html.tmpl"
  61. $output .= $stash->get(['Param', [ 'emailregexpdesc' ]]);
  62. }
  63. $output .= "\n It must also not contain any of these special characters:\n <tt>\\ ( ) &amp; &lt; &gt; , ; : &quot; [ ]</tt>, or any whitespace.\n";
  64. }
  65. elsif ($stash->get('error') eq 'authres_unhandled') {
  66. $output .= "\n The result value of ";
  67. #line 63 "template/en/default/global/code-error.html.tmpl"
  68. # FILTER
  69. $output .= do {
  70. my $output = '';
  71. my $_tt_filter = $context->filter('html')
  72. || $context->throw($context->error);
  73. $output .= $stash->get('value');
  74. &$_tt_filter($output);
  75. };
  76. $output .= " was not handled by\n the login code.\n";
  77. }
  78. elsif ($stash->get('error') eq 'bad_page_cgi_id') {
  79. #line 67 "template/en/default/global/code-error.html.tmpl"
  80. $stash->set('title', 'Invalid Page ID');
  81. $output .= "\n The ID <code>";
  82. #line 68 "template/en/default/global/code-error.html.tmpl"
  83. # FILTER
  84. $output .= do {
  85. my $output = '';
  86. my $_tt_filter = $context->filter('html')
  87. || $context->throw($context->error);
  88. $output .= $stash->get('page_id');
  89. &$_tt_filter($output);
  90. };
  91. $output .= "</code> is not a\n valid page identifier.\n";
  92. }
  93. elsif ($stash->get('error') eq 'bad_arg') {
  94. $output .= "\n Bad argument <code>";
  95. #line 72 "template/en/default/global/code-error.html.tmpl"
  96. # FILTER
  97. $output .= do {
  98. my $output = '';
  99. my $_tt_filter = $context->filter('html')
  100. || $context->throw($context->error);
  101. $output .= $stash->get('argument');
  102. &$_tt_filter($output);
  103. };
  104. $output .= "</code> sent to\n <code>";
  105. #line 73 "template/en/default/global/code-error.html.tmpl"
  106. # FILTER
  107. $output .= do {
  108. my $output = '';
  109. my $_tt_filter = $context->filter('html')
  110. || $context->throw($context->error);
  111. $output .= $stash->get('function');
  112. &$_tt_filter($output);
  113. };
  114. $output .= "</code> function.\n";
  115. }
  116. elsif ($stash->get('error') eq 'bug_error') {
  117. $output .= "\n Trying to retrieve ";
  118. #line 76 "template/en/default/global/code-error.html.tmpl"
  119. $output .= $stash->get(['terms', 0, 'bug', 0]);
  120. $output .= " ";
  121. #line 76 "template/en/default/global/code-error.html.tmpl"
  122. # FILTER
  123. $output .= do {
  124. my $output = '';
  125. my $_tt_filter = $context->filter('html')
  126. || $context->throw($context->error);
  127. $output .= $stash->get(['bug', 0, 'bug_id', 0]);
  128. &$_tt_filter($output);
  129. };
  130. $output .= " returned \n the error ";
  131. #line 77 "template/en/default/global/code-error.html.tmpl"
  132. # FILTER
  133. $output .= do {
  134. my $output = '';
  135. my $_tt_filter = $context->filter('html')
  136. || $context->throw($context->error);
  137. $output .= $stash->get(['bug', 0, 'error', 0]);
  138. &$_tt_filter($output);
  139. };
  140. $output .= ".\n ";
  141. }
  142. elsif ($stash->get('error') eq 'chart_data_not_generated') {
  143. #line 80 "template/en/default/global/code-error.html.tmpl"
  144. $stash->set('admindocslinks', { 'extraconfig.html' => 'Setting up Charting' });
  145. #line 87 "template/en/default/global/code-error.html.tmpl"
  146. if ($stash->get('product')) {
  147. $output .= "\n Charts for the <em>";
  148. #line 82 "template/en/default/global/code-error.html.tmpl"
  149. # FILTER
  150. $output .= do {
  151. my $output = '';
  152. my $_tt_filter = $context->filter('html')
  153. || $context->throw($context->error);
  154. $output .= $stash->get('product');
  155. &$_tt_filter($output);
  156. };
  157. $output .= "</em> product are not\n available yet because no charting data has been collected for it since it\n was created.";
  158. }
  159. else {
  160. $output .= "\n No charting data has been collected yet.";
  161. }
  162. $output .= "\n Please wait a day and try again.\n If you're seeing this message after a day, then you should contact\n <a href=\"mailto:";
  163. #line 90 "template/en/default/global/code-error.html.tmpl"
  164. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  165. $output .= "\">";
  166. #line 90 "template/en/default/global/code-error.html.tmpl"
  167. $output .= $stash->get(['Param', [ 'maintainer' ]]);
  168. $output .= "</a>\n and reference this error.\n";
  169. }
  170. elsif ($stash->get('error') eq 'chart_datafile_corrupt') {
  171. $output .= "\n The chart data file ";
  172. #line 94 "template/en/default/global/code-error.html.tmpl"
  173. # FILTER
  174. $output .= do {
  175. my $output = '';
  176. my $_tt_filter = $context->filter('html')
  177. || $context->throw($context->error);
  178. $output .= $stash->get('file');
  179. &$_tt_filter($output);
  180. };
  181. $output .= " is corrupt.\n ";
  182. }
  183. elsif ($stash->get('error') eq 'chart_dir_nonexistent') {
  184. $output .= "\n One of the directories <tt>";
  185. #line 97 "template/en/default/global/code-error.html.tmpl"
  186. # FILTER
  187. $output .= do {
  188. my $output = '';
  189. my $_tt_filter = $context->filter('html')
  190. || $context->throw($context->error);
  191. $output .= $stash->get('dir');
  192. &$_tt_filter($output);
  193. };
  194. $output .= "</tt> and \n <tt>";
  195. #line 98 "template/en/default/global/code-error.html.tmpl"
  196. # FILTER
  197. $output .= do {
  198. my $output = '';
  199. my $_tt_filter = $context->filter('html')
  200. || $context->throw($context->error);
  201. $output .= $stash->get('graph_dir');
  202. &$_tt_filter($output);
  203. };
  204. $output .= "</tt> does not exist.\n ";
  205. }
  206. elsif ($stash->get('error') eq 'chart_file_open_fail') {
  207. $output .= "\n Unable to open the chart datafile <tt>";
  208. #line 101 "template/en/default/global/code-error.html.tmpl"
  209. # FILTER
  210. $output .= do {
  211. my $output = '';
  212. my $_tt_filter = $context->filter('html')
  213. || $context->throw($context->error);
  214. $output .= $stash->get('filename');
  215. &$_tt_filter($output);
  216. };
  217. $output .= "</tt>.\n ";
  218. }
  219. elsif ($stash->get('error') eq 'column_not_null_without_default') {
  220. $output .= "\n Failed adding the column ";
  221. #line 104 "template/en/default/global/code-error.html.tmpl"
  222. # FILTER
  223. $output .= do {
  224. my $output = '';
  225. my $_tt_filter = $context->filter('html')
  226. || $context->throw($context->error);
  227. $output .= $stash->get('name');
  228. &$_tt_filter($output);
  229. };
  230. $output .= ":\n You cannot add a NOT NULL column with no default to an existing table\n unless you specify something for the <code>\$init_value</code> argument.\n";
  231. }
  232. elsif ($stash->get('error') eq 'column_not_null_no_default_alter') {
  233. $output .= "\n You cannot alter the ";
  234. #line 109 "template/en/default/global/code-error.html.tmpl"
  235. # FILTER
  236. $output .= do {
  237. my $output = '';
  238. my $_tt_filter = $context->filter('html')
  239. || $context->throw($context->error);
  240. $output .= $stash->get('name');
  241. &$_tt_filter($output);
  242. };
  243. $output .= " column to be NOT NULL \n without specifying a default or something for \$set_nulls_to, because\n there are NULL values currently in it.\n";
  244. }
  245. elsif ($stash->get('error') eq 'comment_extra_data_not_allowed') {
  246. $output .= "\n You tried to set the <code>extra_data</code> field to \n '";
  247. #line 115 "template/en/default/global/code-error.html.tmpl"
  248. # FILTER
  249. $output .= do {
  250. my $output = '';
  251. my $_tt_filter = $context->filter('html')
  252. || $context->throw($context->error);
  253. $output .= $stash->get('extra_data');
  254. &$_tt_filter($output);
  255. };
  256. $output .= "' but comments of type ";
  257. #line 115 "template/en/default/global/code-error.html.tmpl"
  258. # FILTER
  259. $output .= do {
  260. my $output = '';
  261. my $_tt_filter = $context->filter('html')
  262. || $context->throw($context->error);
  263. $output .= $stash->get('type');
  264. &$_tt_filter($output);
  265. };
  266. $output .= "\n do not accept an <code>extra_data</code> argument.\n";
  267. }
  268. elsif ($stash->get('error') eq 'comment_extra_data_required') {
  269. $output .= "\n Comments of type ";
  270. #line 119 "template/en/default/global/code-error.html.tmpl"
  271. # FILTER
  272. $output .= do {
  273. my $output = '';
  274. my $_tt_filter = $context->filter('html')
  275. || $context->throw($context->error);
  276. $output .= $stash->get('type');
  277. &$_tt_filter($output);
  278. };
  279. $output .= " require an <code>extra_data</code>\n argument to be set.\n";
  280. }
  281. elsif ($stash->get('error') eq 'comment_extra_data_not_numeric') {
  282. $output .= "\n You tried to set the <code>extra_data</code> field to\n '";
  283. #line 124 "template/en/default/global/code-error.html.tmpl"
  284. # FILTER
  285. $output .= do {
  286. my $output = '';
  287. my $_tt_filter = $context->filter('html')
  288. || $context->throw($context->error);
  289. $output .= $stash->get('extra_data');
  290. &$_tt_filter($output);
  291. };
  292. $output .= "' but comments of type ";
  293. #line 124 "template/en/default/global/code-error.html.tmpl"
  294. # FILTER
  295. $output .= do {
  296. my $output = '';
  297. my $_tt_filter = $context->filter('html')
  298. || $context->throw($context->error);
  299. $output .= $stash->get('type');
  300. &$_tt_filter($output);
  301. };
  302. $output .= "\n require a numeric <code>extra_data</code> argument.\n";
  303. }
  304. elsif ($stash->get('error') eq 'comment_type_invalid') {
  305. $output .= "\n '";
  306. #line 128 "template/en/default/global/code-error.html.tmpl"
  307. # FILTER
  308. $output .= do {
  309. my $output = '';
  310. my $_tt_filter = $context->filter('html')
  311. || $context->throw($context->error);
  312. $output .= $stash->get('type');
  313. &$_tt_filter($output);
  314. };
  315. $output .= "' is not a valid comment type.\n";
  316. }
  317. elsif ($stash->get('error') eq 'db_rename_conflict') {
  318. $output .= "\n Name conflict: Cannot rename ";
  319. #line 131 "template/en/default/global/code-error.html.tmpl"
  320. # FILTER
  321. $output .= do {
  322. my $output = '';
  323. my $_tt_filter = $context->filter('html')
  324. || $context->throw($context->error);
  325. $output .= $stash->get('old');
  326. &$_tt_filter($output);
  327. };
  328. $output .= " to";
  329. #line 132 "template/en/default/global/code-error.html.tmpl"
  330. # FILTER
  331. $output .= do {
  332. my $output = '';
  333. my $_tt_filter = $context->filter('html')
  334. || $context->throw($context->error);
  335. $output .= $stash->get('new');
  336. &$_tt_filter($output);
  337. };
  338. $output .= " because ";
  339. #line 132 "template/en/default/global/code-error.html.tmpl"
  340. # FILTER
  341. $output .= do {
  342. my $output = '';
  343. my $_tt_filter = $context->filter('html')
  344. || $context->throw($context->error);
  345. $output .= $stash->get('new');
  346. &$_tt_filter($output);
  347. };
  348. $output .= " already exists.\n";
  349. }
  350. elsif ($stash->get('error') eq 'cookies_need_value') {
  351. $output .= "\n Every cookie must have a value.\n";
  352. }
  353. elsif ($stash->get('error') eq 'env_no_email') {
  354. #line 138 "template/en/default/global/code-error.html.tmpl"
  355. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  356. $output .= " did not receive an email address from the \n environment.";
  357. #line 147 "template/en/default/global/code-error.html.tmpl"
  358. if ($stash->get(['Param', [ 'auth_env_email' ]])) {
  359. $output .= "\n This means that the '";
  360. #line 141 "template/en/default/global/code-error.html.tmpl"
  361. # FILTER
  362. $output .= do {
  363. my $output = '';
  364. my $_tt_filter = $context->filter('html')
  365. || $context->throw($context->error);
  366. $output .= $stash->get(['Param', [ 'auth_env_email' ]]);
  367. &$_tt_filter($output);
  368. };
  369. $output .= "'\n environment variable was empty or did not exist.";
  370. }
  371. else {
  372. $output .= "\n You need to set the \"auth_env_email\" parameter to the name of\n the environment variable that will contain the user's email\n address.";
  373. }
  374. $output .= "\n";
  375. }
  376. elsif ($stash->get('error') eq 'extension_disabled') {
  377. #line 150 "template/en/default/global/code-error.html.tmpl"
  378. $stash->set('title', 'Extension Disabled');
  379. $output .= "\n You cannot access this page because the extension '";
  380. #line 151 "template/en/default/global/code-error.html.tmpl"
  381. # FILTER
  382. $output .= do {
  383. my $output = '';
  384. my $_tt_filter = $context->filter('html')
  385. || $context->throw($context->error);
  386. $output .= $stash->get('name');
  387. &$_tt_filter($output);
  388. };
  389. $output .= "'\n is disabled.\n";
  390. }
  391. elsif ($stash->get('error') eq 'extension_must_be_subclass') {
  392. $output .= "\n <code>";
  393. #line 155 "template/en/default/global/code-error.html.tmpl"
  394. # FILTER
  395. $output .= do {
  396. my $output = '';
  397. my $_tt_filter = $context->filter('html')
  398. || $context->throw($context->error);
  399. $output .= $stash->get('package');
  400. &$_tt_filter($output);
  401. };
  402. $output .= "</code> from \n <code>";
  403. #line 156 "template/en/default/global/code-error.html.tmpl"
  404. # FILTER
  405. $output .= do {
  406. my $output = '';
  407. my $_tt_filter = $context->filter('html')
  408. || $context->throw($context->error);
  409. $output .= $stash->get('filename');
  410. &$_tt_filter($output);
  411. };
  412. $output .= "</code> is not a subclass of\n <code>";
  413. #line 157 "template/en/default/global/code-error.html.tmpl"
  414. # FILTER
  415. $output .= do {
  416. my $output = '';
  417. my $_tt_filter = $context->filter('html')
  418. || $context->throw($context->error);
  419. $output .= $stash->get('class');
  420. &$_tt_filter($output);
  421. };
  422. $output .= "</code>.\n";
  423. }
  424. elsif ($stash->get('error') eq 'extension_must_return_name') {
  425. $output .= "\n <code>";
  426. #line 160 "template/en/default/global/code-error.html.tmpl"
  427. # FILTER
  428. $output .= do {
  429. my $output = '';
  430. my $_tt_filter = $context->filter('html')
  431. || $context->throw($context->error);
  432. $output .= $stash->get('extension');
  433. &$_tt_filter($output);
  434. };
  435. $output .= "</code> returned\n <code>";
  436. #line 161 "template/en/default/global/code-error.html.tmpl"
  437. # FILTER
  438. $output .= do {
  439. my $output = '';
  440. my $_tt_filter = $context->filter('html')
  441. || $context->throw($context->error);
  442. $output .= $stash->get('returned');
  443. &$_tt_filter($output);
  444. };
  445. $output .= "</code>, which is not a valid name\n for an extension. Extensions must return their name, not <code>1</code>\n or a number. See the documentation of\n <a href=\"";
  446. #line 164 "template/en/default/global/code-error.html.tmpl"
  447. # FILTER
  448. $output .= do {
  449. my $output = '';
  450. my $_tt_filter = $context->filter('html')
  451. || $context->throw($context->error);
  452. $output .= $stash->get('docs_urlbase');
  453. &$_tt_filter($output);
  454. };
  455. $output .= "api/Bugzilla/Extension.html\">Bugzilla::Extension</a>\n for details.\n";
  456. }
  457. elsif ($stash->get('error') eq 'extension_no_name') {
  458. $output .= "\n We did not find a <code>NAME</code> method in \n <code>";
  459. #line 169 "template/en/default/global/code-error.html.tmpl"
  460. # FILTER
  461. $output .= do {
  462. my $output = '';
  463. my $_tt_filter = $context->filter('html')
  464. || $context->throw($context->error);
  465. $output .= $stash->get('package');
  466. &$_tt_filter($output);
  467. };
  468. $output .= "</code> (loaded from\n <code>";
  469. #line 170 "template/en/default/global/code-error.html.tmpl"
  470. # FILTER
  471. $output .= do {
  472. my $output = '';
  473. my $_tt_filter = $context->filter('html')
  474. || $context->throw($context->error);
  475. $output .= $stash->get('filename');
  476. &$_tt_filter($output);
  477. };
  478. $output .= "</code>). This means that\n the extension has one or more of the following problems:\n\n <ul>\n <li><code>";
  479. #line 174 "template/en/default/global/code-error.html.tmpl"
  480. # FILTER
  481. $output .= do {
  482. my $output = '';
  483. my $_tt_filter = $context->filter('html')
  484. || $context->throw($context->error);
  485. $output .= $stash->get('filename');
  486. &$_tt_filter($output);
  487. };
  488. $output .= "</code> did not define a\n <code>";
  489. #line 175 "template/en/default/global/code-error.html.tmpl"
  490. # FILTER
  491. $output .= do {
  492. my $output = '';
  493. my $_tt_filter = $context->filter('html')
  494. || $context->throw($context->error);
  495. $output .= $stash->get('package');
  496. &$_tt_filter($output);
  497. };
  498. $output .= "</code> package.</li>\n <li><code>";
  499. #line 176 "template/en/default/global/code-error.html.tmpl"
  500. # FILTER
  501. $output .= do {
  502. my $output = '';
  503. my $_tt_filter = $context->filter('html')
  504. || $context->throw($context->error);
  505. $output .= $stash->get('package');
  506. &$_tt_filter($output);
  507. };
  508. $output .= "</code> did not define a\n <code>NAME</code> method (or the <code>NAME</code> method\n returned an empty string).</li>\n </ul>\n";
  509. }
  510. elsif ($stash->get('error') eq 'extern_id_conflict') {
  511. $output .= "\n The external ID '";
  512. #line 182 "template/en/default/global/code-error.html.tmpl"
  513. # FILTER
  514. $output .= do {
  515. my $output = '';
  516. my $_tt_filter = $context->filter('html')
  517. || $context->throw($context->error);
  518. $output .= $stash->get('extern_id');
  519. &$_tt_filter($output);
  520. };
  521. $output .= "' already exists\n in the database for '";
  522. #line 183 "template/en/default/global/code-error.html.tmpl"
  523. # FILTER
  524. $output .= do {
  525. my $output = '';
  526. my $_tt_filter = $context->filter('html')
  527. || $context->throw($context->error);
  528. $output .= $stash->get('username');
  529. &$_tt_filter($output);
  530. };
  531. $output .= "', but your\n account source says that '";
  532. #line 184 "template/en/default/global/code-error.html.tmpl"
  533. # FILTER
  534. $output .= do {
  535. my $output = '';
  536. my $_tt_filter = $context->filter('html')
  537. || $context->throw($context->error);
  538. $output .= $stash->get('extern_user');
  539. &$_tt_filter($output);
  540. };
  541. $output .= "' has that ID.\n";
  542. }
  543. elsif ($stash->get('error') eq 'field_choice_must_use_type') {
  544. $output .= "\n When you call a class method on <code>Bugzilla::Field::Choice</code>,\n you must call <code>Bugzilla::Field::Choice-&gt;type('some_field')</code>\n to generate the right class (you can't call class methods directly\n on Bugzilla::Field::Choice).\n";
  545. }
  546. elsif ($stash->get('error') eq 'field_not_custom') {
  547. $output .= "\n '";
  548. #line 193 "template/en/default/global/code-error.html.tmpl"
  549. # FILTER
  550. $output .= do {
  551. my $output = '';
  552. my $_tt_filter = $context->filter('html')
  553. || $context->throw($context->error);
  554. $output .= $stash->get(['field', 0, 'description', 0]);
  555. &$_tt_filter($output);
  556. };
  557. $output .= "' (";
  558. #line 193 "template/en/default/global/code-error.html.tmpl"
  559. # FILTER
  560. $output .= do {
  561. my $output = '';
  562. my $_tt_filter = $context->filter('html')
  563. || $context->throw($context->error);
  564. $output .= $stash->get(['field', 0, 'name', 0]);
  565. &$_tt_filter($output);
  566. };
  567. $output .= ")\n is not a custom field.\n";
  568. }
  569. elsif ($stash->get('error') eq 'field_type_mismatch') {
  570. $output .= "\n Cannot seem to handle <code>";
  571. #line 197 "template/en/default/global/code-error.html.tmpl"
  572. # FILTER
  573. $output .= do {
  574. my $output = '';
  575. my $_tt_filter = $context->filter('html')
  576. || $context->throw($context->error);
  577. $output .= $stash->get('field');
  578. &$_tt_filter($output);
  579. };
  580. $output .= "</code>\n and <code>";
  581. #line 198 "template/en/default/global/code-error.html.tmpl"
  582. # FILTER
  583. $output .= do {
  584. my $output = '';
  585. my $_tt_filter = $context->filter('html')
  586. || $context->throw($context->error);
  587. $output .= $stash->get('type');
  588. &$_tt_filter($output);
  589. };
  590. $output .= "</code> together.\n";
  591. }
  592. elsif ($stash->get('error') eq 'field_type_not_specified') {
  593. #line 201 "template/en/default/global/code-error.html.tmpl"
  594. $stash->set('title', 'Field Type Not Specified');
  595. $output .= "\n You must specify a type when creating a custom field.\n";
  596. }
  597. elsif ($stash->get('error') eq 'illegal_content_type_method') {
  598. $output .= "\n Your form submission got corrupted somehow. The <em>content\n method</em> field, which specifies how the content type gets determined,\n should have been either <em>autodetect</em>, <em>list</em>,\n or <em>manual</em>, but was instead\n <em>";
  599. #line 209 "template/en/default/global/code-error.html.tmpl"
  600. # FILTER
  601. $output .= do {
  602. my $output = '';
  603. my $_tt_filter = $context->filter('html')
  604. || $context->throw($context->error);
  605. $output .= $stash->get('contenttypemethod');
  606. &$_tt_filter($output);
  607. };
  608. $output .= "</em>.\n";
  609. }
  610. elsif ($stash->get('error') eq 'illegal_field') {
  611. $output .= "\n A legal ";
  612. #line 212 "template/en/default/global/code-error.html.tmpl"
  613. # FILTER
  614. $output .= do {
  615. my $output = '';
  616. my $_tt_filter = $context->filter('html')
  617. || $context->throw($context->error);
  618. $output .= $stash->get('field');
  619. &$_tt_filter($output);
  620. };
  621. $output .= " was not set.\n";
  622. }
  623. elsif ($stash->get('error') eq 'invalid_attach_id_to_obsolete') {
  624. $output .= "\n The attachment number of one of the attachments you wanted to obsolete,";
  625. #line 216 "template/en/default/global/code-error.html.tmpl"
  626. # FILTER
  627. $output .= do {
  628. my $output = '';
  629. my $_tt_filter = $context->filter('html')
  630. || $context->throw($context->error);
  631. $output .= $stash->get('attach_id');
  632. &$_tt_filter($output);
  633. };
  634. $output .= ", is invalid.\n ";
  635. }
  636. elsif ($stash->get('error') eq 'invalid_customfield_type') {
  637. #line 219 "template/en/default/global/code-error.html.tmpl"
  638. $stash->set('title', 'Invalid Field Type');
  639. $output .= "\n The type <em>";
  640. #line 220 "template/en/default/global/code-error.html.tmpl"
  641. # FILTER
  642. $output .= do {
  643. my $output = '';
  644. my $_tt_filter = $context->filter('html')
  645. || $context->throw($context->error);
  646. $output .= $stash->get('type');
  647. &$_tt_filter($output);
  648. };
  649. $output .= "</em> is not a valid field type.\n";
  650. }
  651. elsif ($stash->get('error') eq 'invalid_dimensions') {
  652. #line 223 "template/en/default/global/code-error.html.tmpl"
  653. $stash->set('title', 'Invalid Dimensions');
  654. $output .= "\n The width or height specified is not a positive integer.\n";
  655. }
  656. elsif ($stash->get('error') eq 'invalid_feature') {
  657. #line 227 "template/en/default/global/code-error.html.tmpl"
  658. $stash->set('title', 'Invalid Feature Name');
  659. #line 228 "template/en/default/global/code-error.html.tmpl"
  660. # FILTER
  661. $output .= do {
  662. my $output = '';
  663. my $_tt_filter = $context->filter('html')
  664. || $context->throw($context->error);
  665. $output .= $stash->get('feature');
  666. &$_tt_filter($output);
  667. };
  668. $output .= " is not a valid feature name. See\n <code>OPTIONAL_MODULES</code> in \n <code>Bugzilla::Install::Requirements</code> for valid names.\n";
  669. }
  670. elsif ($stash->get('error') eq 'invalid_flag_association') {
  671. #line 233 "template/en/default/global/code-error.html.tmpl"
  672. $stash->set('title', 'Invalid Flag Association');
  673. $output .= "\n Some flags do not belong to";
  674. #line 239 "template/en/default/global/code-error.html.tmpl"
  675. if ($stash->get('attach_id')) {
  676. $output .= "\n attachment ";
  677. #line 236 "template/en/default/global/code-error.html.tmpl"
  678. # FILTER
  679. $output .= do {
  680. my $output = '';
  681. my $_tt_filter = $context->filter('html')
  682. || $context->throw($context->error);
  683. $output .= $stash->get('attach_id');
  684. &$_tt_filter($output);
  685. };
  686. $output .= ".";
  687. }
  688. else {
  689. $output .= "\n ";
  690. #line 238 "template/en/default/global/code-error.html.tmpl"
  691. $output .= $stash->get(['terms', 0, 'bug', 0]);
  692. $output .= " ";
  693. #line 238 "template/en/default/global/code-error.html.tmpl"
  694. # FILTER
  695. $output .= do {
  696. my $output = '';
  697. my $_tt_filter = $context->filter('html')
  698. || $context->throw($context->error);
  699. $output .= $stash->get('bug_id');
  700. &$_tt_filter($output);
  701. };
  702. $output .= ".";
  703. }
  704. $output .= "\n";
  705. }
  706. elsif ($stash->get('error') eq 'invalid_series_id') {
  707. #line 242 "template/en/default/global/code-error.html.tmpl"
  708. $stash->set('title', 'Invalid Series');
  709. $output .= "\n The series_id ";
  710. #line 243 "template/en/default/global/code-error.html.tmpl"
  711. # FILTER
  712. $output .= do {
  713. my $output = '';
  714. my $_tt_filter = $context->filter('html')
  715. || $context->throw($context->error);
  716. $output .= $stash->get('series_id');
  717. &$_tt_filter($output);
  718. };
  719. $output .= " is not valid. It may be that\n this series has been deleted.\n";
  720. }
  721. elsif ($stash->get('error') eq 'invalid_webservergroup') {
  722. $output .= "\n There is no such group: ";
  723. #line 247 "template/en/default/global/code-error.html.tmpl"
  724. # FILTER
  725. $output .= do {
  726. my $output = '';
  727. my $_tt_filter = $context->filter('html')
  728. || $context->throw($context->error);
  729. $output .= $stash->get('group');
  730. &$_tt_filter($output);
  731. };
  732. $output .= ". Check your \$webservergroup\n setting in ";
  733. #line 248 "template/en/default/global/code-error.html.tmpl"
  734. # FILTER
  735. $output .= do {
  736. my $output = '';
  737. my $_tt_filter = $context->filter('html')
  738. || $context->throw($context->error);
  739. $output .= './localconfig';
  740. &$_tt_filter($output);
  741. };
  742. $output .= ".\n";
  743. }
  744. elsif ($stash->get('error') eq 'mismatched_bug_ids_on_obsolete') {
  745. $output .= "\n Attachment ";
  746. #line 251 "template/en/default/global/code-error.html.tmpl"
  747. # FILTER
  748. $output .= do {
  749. my $output = '';
  750. my $_tt_filter = $context->filter('html')
  751. || $context->throw($context->error);
  752. $output .= $stash->get('attach_id');
  753. &$_tt_filter($output);
  754. };
  755. $output .= " (";
  756. #line 251 "template/en/default/global/code-error.html.tmpl"
  757. # FILTER
  758. $output .= do {
  759. my $output = '';
  760. my $_tt_filter = $context->filter('html')
  761. || $context->throw($context->error);
  762. $output .= $stash->get('description');
  763. &$_tt_filter($output);
  764. };
  765. $output .= ") \n is attached to ";
  766. #line 252 "template/en/default/global/code-error.html.tmpl"
  767. $output .= $stash->get(['terms', 0, 'bug', 0]);
  768. $output .= " ";
  769. #line 252 "template/en/default/global/code-error.html.tmpl"
  770. # FILTER
  771. $output .= do {
  772. my $output = '';
  773. my $_tt_filter = $context->filter('html')
  774. || $context->throw($context->error);
  775. $output .= $stash->get('attach_bug_id');
  776. &$_tt_filter($output);
  777. };
  778. $output .= ", \n but you tried to flag it as obsolete while creating a new attachment to ";
  779. #line 254 "template/en/default/global/code-error.html.tmpl"
  780. $output .= $stash->get(['terms', 0, 'bug', 0]);
  781. $output .= " ";
  782. #line 254 "template/en/default/global/code-error.html.tmpl"
  783. # FILTER
  784. $output .= do {
  785. my $output = '';
  786. my $_tt_filter = $context->filter('html')
  787. || $context->throw($context->error);
  788. $output .= $stash->get('my_bug_id');
  789. &$_tt_filter($output);
  790. };
  791. $output .= ".\n";
  792. }
  793. elsif ($stash->get('error') eq 'feature_disabled') {
  794. $output .= "\n The ";
  795. #line 1 "template/en/default/global/code-error.html.tmpl"
  796. # FILTER
  797. $output .= do {
  798. my $output = '';
  799. my $_tt_filter = $context->filter('html')
  800. || $context->throw($context->error);
  801. $output .= $stash->get(['install_string', [ ("feature_" . $stash->get('feature')) ]]);
  802. &$_tt_filter($output);
  803. };
  804. $output .= " feature is not\n available in this ";
  805. #line 258 "template/en/default/global/code-error.html.tmpl"
  806. $output .= $stash->get(['terms', 0, 'Bugzilla', 0]);
  807. $output .= ". ";
  808. #line 263 "template/en/default/global/code-error.html.tmpl"
  809. if ($stash->get(['user', 0, 'in_group', [ 'admin' ]])) {
  810. $output .= "\n If you would like to enable this feature, please run \n <kbd>checksetup.pl</kbd> to see how to install the necessary\n requirements for this feature.";
  811. }
  812. $output .= "\n";
  813. }
  814. elsif ($stash->get('error') eq 'flag_unexpected_object') {
  815. #line 266 "template/en/default/global/code-error.html.tmpl"
  816. $stash->set('title', 'Object Not Recognized');
  817. $output .= "\n Flags cannot be set for objects of type ";
  818. #line 267 "template/en/default/global/code-error.html.tmpl"
  819. # FILTER
  820. $output .= do {
  821. my $output = '';
  822. my $_tt_filter = $context->filter('html')
  823. || $context->throw($context->error);
  824. $output .= $stash->get('caller');
  825. &$_tt_filter($output);
  826. };
  827. $output .= ".\n They can only be set for ";
  828. #line 268 "template/en/default/global/code-error.html.tmpl"
  829. $output .= $stash->get(['terms', 0, 'bugs', 0]);
  830. $output .= " and attachments.\n";
  831. }
  832. elsif ($stash->get('error') eq 'flag_requestee_disabled') {
  833. #line 271 "template/en/default/global/code-error.html.tmpl"
  834. $stash->set('title', 'Flag not Requestable from Specific Person');
  835. $output .= "\n You can't ask a specific person for\n <em>";
  836. #line 273 "template/en/default/global/code-error.html.tmpl"
  837. # FILTER
  838. $output .= do {
  839. my $output = '';
  840. my $_tt_filter = $context->filter('html')
  841. || $context->throw($context->error);
  842. $output .= $stash->get(['type', 0, 'name', 0]);
  843. &$_tt_filter($output);
  844. };
  845. $output .= "</em>.\n ";
  846. }
  847. elsif ($stash->get('error') eq 'flag_type_inactive') {
  848. #line 276 "template/en/default/global/code-error.html.tmpl"
  849. $stash->set('title', 'Inactive Flag Type');
  850. $output .= "\n The flag type ";
  851. #line 277 "template/en/default/global/code-error.html.tmpl"
  852. # FILTER
  853. $output .= do {
  854. my $output = '';
  855. my $_tt_filter = $context->filter('html')
  856. || $context->throw($context->error);
  857. $output .= $stash->get('type');
  858. &$_tt_filter($output);
  859. };
  860. $output .= " is inactive and cannot be used\n to create new flags.\n";
  861. }
  862. elsif ($stash->get('error') eq 'flag_type_nonexistent') {
  863. $output .= "\n There is no flag type with the ID <em>";
  864. #line 281 "template/en/default/global/code-error.html.tmpl"
  865. # FILTER
  866. $output .= do {
  867. my $output = '';
  868. my $_tt_filter = $context->filter('html')
  869. || $context->throw($context->error);
  870. $output .= $stash->get('id');
  871. &$_tt_filter($output);
  872. };
  873. $output .= "</em>.\n";
  874. }
  875. elsif ($stash->get('error') eq 'flag_type_target_type_invalid') {
  876. $output .= "\n The target type was neither <em>";
  877. #line 284 "template/en/default/global/code-error.html.tmpl"
  878. $output .= $stash->get(['terms', 0, 'bug', 0]);
  879. $output .= "</em> nor <em>attachment</em>\n but rather <em>";
  880. #line 285 "template/en/default/global/code-error.html.tmpl"
  881. # FILTER
  882. $output .= do {
  883. my $output = '';
  884. my $_tt_filter = $context->filter('html')
  885. || $context->throw($context->error);
  886. $output .= $stash->get('target_type');
  887. &$_tt_filter($output);
  888. };
  889. $output .= "</em>.\n ";
  890. }
  891. elsif ($stash->get('error') eq 'invalid_field_name') {
  892. $output .= "\n Can't use ";
  893. #line 288 "template/en/default/global/code-error.html.tmpl"
  894. # FILTER
  895. $output .= do {
  896. my $output = '';
  897. my $_tt_filter = $context->filter('html')
  898. || $context->throw($context->error);
  899. $output .= $stash->get('field');
  900. &$_tt_filter($output);
  901. };
  902. $output .= " as a field name.\n";
  903. }
  904. elsif ($stash->get('error') eq 'invalid_keyword_id') {
  905. $output .= "\n The keyword ID <em>";
  906. #line 291 "template/en/default/global/code-error.html.tmpl"
  907. # FILTER
  908. $output .= do {
  909. my $output = '';
  910. my $_tt_filter = $context->filter('html')
  911. || $context->throw($context->error);
  912. $output .= $stash->get('id');
  913. &$_tt_filter($output);
  914. };
  915. $output .= "</em> couldn't be\n found.\n";
  916. }
  917. elsif ($stash->get('error') eq 'invalid_user') {
  918. #line 295 "template/en/default/global/code-error.html.tmpl"
  919. $stash->set('title', 'Invalid User');
  920. $output .= "\n There is no user account";
  921. #line 303 "template/en/default/global/code-error.html.tmpl"
  922. if ($stash->get('user_id')) {
  923. $output .= "\n with ID <em>";
  924. #line 298 "template/en/default/global/code-error.html.tmpl"
  925. # FILTER
  926. $output .= do {
  927. my $output = '';
  928. my $_tt_filter = $context->filter('html')
  929. || $context->throw($context->error);
  930. $output .= $stash->get('user_id');
  931. &$_tt_filter($output);
  932. };
  933. $output .= "</em>.";
  934. }
  935. elsif ($stash->get('user_login')) {
  936. $output .= "\n with login name <em>";
  937. #line 300 "template/en/default/global/code-error.html.tmpl"
  938. # FILTER
  939. $output .= do {
  940. my $output = '';
  941. my $_tt_filter = $context->filter('html')
  942. || $context->throw($context->error);
  943. $output .= $stash->get('user_login');
  944. &$_tt_filter($output);
  945. };
  946. $output .= "</em>.";
  947. }
  948. else {
  949. $output .= "\n given.";
  950. }
  951. $output .= "\n";
  952. }
  953. elsif ($stash->get('error') eq 'jobqueue_insert_failed') {
  954. #line 306 "template/en/default/global/code-error.html.tmpl"
  955. $stash->set('title', 'Job Queue Failure');
  956. $output .= "\n Inserting a <code>";
  957. #line 307 "template/en/default/global/code-error.html.tmpl"
  958. # FILTER
  959. $output .= do {
  960. my $output = '';
  961. my $_tt_filter = $context->filter('html')
  962. || $context->throw($context->error);
  963. $output .= $stash->get('job');
  964. &$_tt_filter($output);
  965. };
  966. $output .= "</code> job into the Job \n Queue failed with the following error: ";
  967. #line 308 "template/en/default/global/code-error.html.tmpl"
  968. # FILTER
  969. $output .= do {
  970. my $output = '';
  971. my $_tt_filter = $context->filter('html')
  972. || $context->throw($context->error);
  973. $output .= $stash->get('errmsg');
  974. &$_tt_filter($output);
  975. };
  976. $output .= "\n";
  977. }
  978. elsif ($stash->get('error') eq 'jobqueue_no_job_mapping') {
  979. $output .= "\n <code>Bugzilla::JobQueue</code> has not been configured to handle\n the job \"";
  980. #line 312 "template/en/default/global/code-error.html.tmpl"
  981. # FILTER
  982. $output .= do {
  983. my $output = '';
  984. my $_tt_filter = $context->filter('html')
  985. || $context->throw($context->error);
  986. $output .= $stash->get('job');
  987. &$_tt_filter($output);
  988. };
  989. $output .= "\". You need to add this job type\n to the <code>JOB_MAP</code> constant in <code>Bugzilla::JobQueue</code>.\n";
  990. }
  991. elsif ($stash->get('error') eq 'ldap_bind_failed') {
  992. $output .= "\n Failed to bind to the LDAP server. The error message was: \n <code>";
  993. #line 317 "template/en/default/global/code-error.html.tmpl"
  994. # FILTER
  995. $output .= do {
  996. my $output = '';
  997. my $_tt_filter = $context->filter('html')
  998. || $context->throw($context->error);
  999. $output .= $stash->get('errstr');
  1000. &$_tt_filter($output);
  1001. };
  1002. $output .= "</code>\n";
  1003. }
  1004. elsif ($stash->get('error') eq 'ldap_cannot_retreive_attr') {
  1005. $output .= "\n The specified LDAP attribute ";
  1006. #line 320 "template/en/default/global/code-error.html.tmpl"
  1007. # FILTER
  1008. $output .= do {
  1009. my $output = '';
  1010. my $_tt_filter = $context->filter('html')
  1011. || $context->throw($context->error);
  1012. $output .= $stash->get('attr');
  1013. &$_tt_filter($output);
  1014. };
  1015. $output .= " was not found.\n";
  1016. }
  1017. elsif ($stash->get('error') eq 'ldap_connect_failed') {
  1018. $output .= "\n Could not connect to the LDAP server(s) <code>";
  1019. #line 323 "template/en/default/global/code-error.html.tmpl"
  1020. # FILTER
  1021. $output .= do {
  1022. my $output = '';
  1023. my $_tt_filter = $context->filter('html')
  1024. || $context->throw($context->error);
  1025. $output .= $stash->get('server');
  1026. &$_tt_filter($output);
  1027. };
  1028. $output .= "</code>.\n";
  1029. }
  1030. elsif ($stash->get('error') eq 'ldap_start_tls_failed') {
  1031. $output .= "\n Could not start TLS with LDAP server: <code>";
  1032. #line 326 "template/en/default/global/code-error.html.tmpl"
  1033. # FILTER
  1034. $output .= do {
  1035. my $output = '';
  1036. my $_tt_filter = $context->filter('html')
  1037. || $context->throw($context->error);
  1038. $output .= $stash->get('error');
  1039. &$_tt_filter($output);
  1040. };
  1041. $output .= "</code>.\n";
  1042. }
  1043. elsif ($stash->get('error') eq 'ldap_search_error') {
  1044. $output .= "\n An error occurred while trying to search LDAP for \n &quot;";
  1045. #line 330 "template/en/default/global/code-error.html.tmpl"
  1046. # FILTER
  1047. $output .= do {
  1048. my $output = '';
  1049. my $_tt_filter = $context->filter('html')
  1050. || $context->throw($context->error);
  1051. $output .= $stash->get('username');
  1052. &$_tt_filter($output);
  1053. };
  1054. $output .= "&quot;: ";
  1055. #line 335 "template/en/default/global/code-error.html.tmpl"
  1056. if ($stash->get('errstr')) {
  1057. $output .= "\n <code>";
  1058. #line 332 "template/en/default/global/code-error.html.tmpl"
  1059. # FILTER
  1060. $output .= do {
  1061. my $output = '';
  1062. my $_tt_filter = $context->filter('html')
  1063. || $context->throw($context->error);
  1064. $output .= $stash->get('errstr');
  1065. &$_tt_filter($output);
  1066. };
  1067. $output .= "</code>";
  1068. }
  1069. else {
  1070. $output .= "\n Unable to find user in LDAP";
  1071. }
  1072. $output .= "\n";
  1073. }
  1074. elsif ($stash->get('error') eq 'ldap_server_not_defined') {
  1075. $output .= "\n The LDAP server for authentication has not been defined.\n";
  1076. }
  1077. elsif ($stash->get('error') eq 'mail_send_error') {
  1078. $output .= "\n There was an error sending mail from '";
  1079. #line 341 "template/en/default/global/code-error.html.tmpl"
  1080. # FILTER
  1081. $output .= do {
  1082. my $output = '';
  1083. my $_tt_filter = $context->filter('html')
  1084. || $context->throw($context->error);
  1085. $output .= $stash->get(['mail', 0, 'header', [ 'From' ]]);
  1086. &$_tt_filter($output);
  1087. };
  1088. $output .= "'\n to '";
  1089. #line 342 "template/en/default/global/code-error.html.tmpl"
  1090. # FILTER
  1091. $output .= do {
  1092. my $output = '';
  1093. my $_tt_filter = $context->filter('html')
  1094. || $context->throw($context->error);
  1095. $output .= $stash->get(['mail', 0, 'header', [ 'To' ]]);
  1096. &$_tt_filter($output);
  1097. };
  1098. $output .= "':";
  1099. #line 343 "template/en/default/global/code-error.html.tmpl"
  1100. # FILTER
  1101. $output .= do {
  1102. my $output = '';
  1103. my $_tt_filter = $context->filter('html')
  1104. || $context->throw($context->error);
  1105. $output .= $stash->get('msg');
  1106. &$_tt_filter($output);
  1107. };
  1108. $output .= "\n";
  1109. }
  1110. elsif ($stash->get('error') eq 'missing_bug_id') {
  1111. $output .= "\n No ";
  1112. #line 346 "template/en/default/global/code-error.html.tmpl"
  1113. $output .= $stash->get(['terms', 0, 'bug', 0]);
  1114. $output .= " ID was given.\n ";
  1115. }
  1116. elsif ($stash->get('error') eq 'missing_series_id') {
  1117. $output .= "\n Having inserted a series into the database, no series_id was returned for\n it. Series: ";
  1118. #line 350 "template/en/default/global/code-error.html.tmpl"
  1119. # FILTER
  1120. $output .= do {
  1121. my $output = '';
  1122. my $_tt_filter = $context->filter('html')
  1123. || $context->throw($context->error);
  1124. $output .= $stash->get(['series', 0, 'category', 0]);
  1125. &$_tt_filter($output);
  1126. };
  1127. $output .= " / \n ";
  1128. #line 351 "template/en/default/global/code-error.html.tmpl"
  1129. # FILTER
  1130. $output .= do {
  1131. my $output = '';
  1132. my $_tt_filter = $context->filter('html')
  1133. || $context->throw($context->error);
  1134. $output .= $stash->get(['series', 0, 'subcategory', 0]);
  1135. &$_tt_filter($output);
  1136. };
  1137. $output .= " / \n ";
  1138. #line 352 "template/en/default/global/code-error.html.tmpl"
  1139. # FILTER
  1140. $output .= do {
  1141. my $output = '';
  1142. my $_tt_filter = $context->filter('html')
  1143. || $context->throw($context->error);
  1144. $output .= $stash->get(['series', 0, 'name', 0]);
  1145. &$_tt_filter($output);
  1146. };
  1147. $output .= ".\n ";
  1148. }
  1149. elsif ($stash->get('error') eq 'need_quipid') {
  1150. $output .= "\n A valid quipid is needed.\n";
  1151. }
  1152. elsif ($stash->get('error') eq 'object_dep_sort_loop') {
  1153. $output .= "\n There is a loop in VALIDATOR_DEPENDENCIES involving\n '";
  1154. #line 359 "template/en/default/global/code-error.html.tmpl"
  1155. # FILTER
  1156. $output .= do {
  1157. my $output = '';
  1158. my $_tt_filter = $context->filter('html')
  1159. || $context->throw($context->error);
  1160. $output .= $stash->get('field');
  1161. &$_tt_filter($output);
  1162. };
  1163. $output .= "'. Here are the fields we considered:\n ";
  1164. #line 360 "template/en/default/global/code-error.html.tmpl"
  1165. # FILTER
  1166. $output .= do {
  1167. my $output = '';
  1168. my $_tt_filter = $context->filter('html')
  1169. || $context->throw($context->error);
  1170. $output .= $stash->get(['considered', 0, 'join', [ ', ' ]]);
  1171. &$_tt_filter($output);
  1172. };
  1173. $output .= ".\n";
  1174. }
  1175. elsif ($stash->get('error') eq 'param_invalid') {
  1176. #line 363 "template/en/default/global/code-error.html.tmpl"
  1177. $stash->set('title', 'Invalid Parameter');
  1178. $output .= "\n <code>";
  1179. #line 364 "template/en/default/global/code-error.html.tmpl"
  1180. # FILTER
  1181. $output .= do {
  1182. my $output = '';
  1183. my $_tt_filter = $context->filter('html')
  1184. || $context->throw($context->error);
  1185. $output .= $stash->get('param');
  1186. &$_tt_filter($output);
  1187. };
  1188. $output .= "</code> is not a valid parameter\n for the ";
  1189. #line 365 "template/en/default/global/code-error.html.tmpl"
  1190. # FILTER
  1191. $output .= do {
  1192. my $output = '';
  1193. my $_tt_filter = $context->filter('html')
  1194. || $context->throw($context->error);
  1195. $output .= $stash->get('function');
  1196. &$_tt_filter($output);
  1197. };
  1198. $output .= " function.\n";
  1199. }
  1200. elsif ($stash->get('error') eq 'param_must_be_numeric') {
  1201. #line 368 "template/en/default/global/code-error.html.tmpl"
  1202. $stash->set('title', 'Invalid Parameter');
  1203. $output .= "\n Invalid parameter <code>";
  1204. #line 369 "template/en/default/global/code-error.html.tmpl"
  1205. # FILTER
  1206. $output .= do {
  1207. my $output = '';
  1208. my $_tt_filter = $context->filter('html')
  1209. || $context->throw($context->error);
  1210. $output .= $stash->get('param');
  1211. &$_tt_filter($output);
  1212. };
  1213. $output .= "</code> passed to \n <code>";
  1214. #line 370 "template/en/default/global/code-error.html.tmpl"
  1215. # FILTER
  1216. $output .= do {
  1217. my $output = '';
  1218. my $_tt_filter = $context->filter('html')
  1219. || $context->throw($context->error);
  1220. $output .= $stash->get('function');
  1221. &$_tt_filter($output);
  1222. };
  1223. $output .= "</code>: It must be numeric.\n";
  1224. }
  1225. elsif ($stash->get('error') eq 'param_required') {
  1226. #line 373 "template/en/default/global/code-error.html.tmpl"
  1227. $stash->set('title', 'Missing Parameter');
  1228. $output .= "\n The function <code>";
  1229. #line 374 "template/en/default/global/code-error.html.tmpl"
  1230. # FILTER
  1231. $output .= do {
  1232. my $output = '';
  1233. my $_tt_filter = $context->filter('html')
  1234. || $context->throw($context->error);
  1235. $output .= $stash->get('function');
  1236. &$_tt_filter($output);
  1237. };
  1238. $output .= "</code> requires\n a <code>";
  1239. #line 375 "templa…

Large files files are truncated, but you can click here to view the full file