Overview
Comment: | Handle UserException correctly in Brindille |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA3-256: |
04d1ddef5181888c68f8a2b6cdb7cc3a |
User & Date: | bohwaz on 2023-05-11 23:46:58 |
Other Links: | branch diff | manifest | tags |
Context
2023-05-11
| ||
23:48 | Accept an array with a list of IDs in {{#users}} section check-in: 167831af68 user: bohwaz tags: dev | |
23:46 | Handle UserException correctly in Brindille check-in: 04d1ddef51 user: bohwaz tags: dev | |
23:46 | Implement inline HTTP attachments in Brindille (useful for PDF) check-in: 457188c414 user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/UserTemplate/UserTemplate.php from [f0372f2f68] to [07b757a717].
︙ | ︙ | |||
412 413 414 415 416 417 418 | echo $code; } echo '</code></pre>'; exit; } | | > > > > > > > > > > > > > | 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 | echo $code; } echo '</code></pre>'; exit; } public function _callFunction(string $name, array $params, int $line) { try { return call_user_func($this->_functions[$name], $params, $this, $line); } catch (UserException $e) { throw $e; } catch (\Exception $e) { throw new Brindille_Exception(sprintf("line %d: function '%s' has returned an error: %s\nParameters: %s", $line, $name, $e->getMessage(), json_encode($params))); } } } |