feat: improved error reporting