diff options
author | http://smcv.pseudorandom.co.uk/ <smcv@web> | 2014-02-21 13:12:17 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-02-21 13:12:17 -0400 |
commit | c1c903c54c605316aeaeebd2e8279964baadbe0b (patch) | |
tree | 3cde7e024c16b56075a4ca7181d6a413cedbc6b1 | |
parent | 819510caa4ddd4c08aa145b1b515e0390c279735 (diff) | |
download | ikiwiki-c1c903c54c605316aeaeebd2e8279964baadbe0b.tar ikiwiki-c1c903c54c605316aeaeebd2e8279964baadbe0b.tar.gz |
new bug, new branch
-rw-r--r-- | doc/bugs/error_handlers_with_gettext_can_clobber___36____64__.mdwn | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/bugs/error_handlers_with_gettext_can_clobber___36____64__.mdwn b/doc/bugs/error_handlers_with_gettext_can_clobber___36____64__.mdwn new file mode 100644 index 000000000..035346284 --- /dev/null +++ b/doc/bugs/error_handlers_with_gettext_can_clobber___36____64__.mdwn @@ -0,0 +1,22 @@ +[[!template id=gitbranch name=smcv/ready/careful-eval author="[[smcv]]"]] +[[!tag patch]] + +As noted in the Try::Tiny man page, eval/$@ can be quite awkward in +corner cases, because $@ has the same properties and problems as C's +errno. While writing a regression test for definetemplate +in which it couldn't find an appropriate template, I received + + <span class="error">Error: failed to process template + <span class="createlink">deftmpl</span> </span> + +instead of the intended + + <span class="error">Error: failed to process template + <span class="createlink">deftmpl</span> template deftmpl not + found</span> + +which turned out to be because the "catch"-analogous block called +gettext before it used $@, and gettext can call define_gettext, +which uses eval. + +Fixed in my branch smcv/ready/careful-eval. --[[smcv]] |