only raise errors in development