Better error reporting, but it breaks rock compilation