You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In latest nom failing inside BUILD can't be detected anymore:
<sortiz> star-m: class Foo { submethod BUILD { fail "noway" } } ; with Foo.new { say "good" } else { .fail }
<camelia> star-m 2016.04: OUTPUT«noway in submethod BUILD at <tmp> line 1 in block <unit> at <tmp> line 1Actually thrown at: in block <unit> at <tmp> line 1»
<sortiz> m: class Foo { submethod BUILD { fail "noway" } } ; with Foo.new { say "good" } else { .fail }
<camelia> rakudo-moar 5d4949: OUTPUT«good»
Bisectable points to commit d5e09d9 "Streamline Mu.BUILDALL":
<sortiz> bisect: class Foo { submethod BUILD { fail "noway" } } ; Foo.new ~~ Failure;
<bisectable> sortiz: exit code on a “good” revision is 1 (which is bad), bisecting with inverted logic
<bisectable> sortiz: (2016-06-11) rakudo/rakudo@d5e09d9
In my real use case, the failure is detected and reported much later, at DESTROY time:
WARNING: unhandled Failure detected in DESTROY:
Env open 'NoSuChDiR': No such file or directory
in submethod BUILD at /home/sog/work/MyGIT/p6-LMDB/lib/LMDB.pm6 (LMDB) line 240
Migrated from rt.perl.org#128393 (status was 'resolved')
Searchable as RT128393$
The text was updated successfully, but these errors were encountered: