Adds better errors for debugging in development