abw / Template2

Perl Template Toolkit v2
http://template-toolkit.org/
146 stars 94 forks source link

Empty CATCH doesn't catch #271

Open sciurius opened 4 years ago

sciurius commented 4 years ago

Given this snippet:

TRY;
    ... an operation that may fail ...
CATCH;
END;

When the operation fails, the error is not caught.

Aparently an empty CATCH block is treated the same as no CATCH block.

Bug or documentation issue?