in reply to Catching error in DateTime::Format

Something is using $SIG{__DIE__} or $SIG{__WARN__}, or something is overriding Carp::croak or die, or something is printing $@, or ...

What's at t/Util.t line 298? That's from where the exception is thrown.

Replies are listed 'Best First'.
Re^2: Catching error in DateTime::Format
by Anonymous Monk on Oct 27, 2025 at 21:11 UTC

    t/Util.t line 298 is the "is ($bogus_datetime...." line in the "The test script now has this" in my original post.

    The app is based on Catalyst, if that affects things. The test module (i.e. t/Util.t) doesn't use anything other than Test::More, though, and doesn't seem to be doing anything fancy; that is, it doesn't look to me like it's using $SIG or overriding other modules.

      No, the line had the die; you've since mentioned you had.