Improves error reporting