Subject: | Input checking on format_datetime method |
G'day,
This is not a critical bug at all, more a nice-to-have when debugging my
own code. If you pass format_datetime a scalar value rather than an
object, a runtime error occurs:
Can't call method "clone" without a package or object reference at
/lib/site_perl/5.12.3/DateTime/Format/Strptime.pm line 781.
This is not as immediately useful when debugging as a croak() would be -
any chance of that being added?
e.g. line 779
croak 'No object passed to format_datetime' unless ref($dt);
No object passed to format_datetime at
/lib/site_perl/5.12.3/A/Nother/Module.pm line 48
Cheers
Brad