sorear/niecza — Issue #69: Error message for <non-regex> could stand to be better
Author: sorear
Created: 2011-10-14 03:34:19+00:00
State: open

```
15:24 < diakopter> niecza: print "{ "foo" ~~ /f()o/ }"
15:24 <+p6eval> niecza v10-44-g82a2206: OUTPUT«␤Unhandled Exception:
System.InvalidCastException: Cannot cast from source type to
destination type.␤ at RxFrame.IncorporateChild
(System.String[] names, Boolean passcap, Niecza.P6any match)
[0x00000] in :0 ␤ at RxFrame.IncorpShift
(Sys…
```

This is calling `.perl`, and trying to interpret the returned `Str` as a `Match`, and failing painfully.