Fix call to non-imported croak

Fixes #1