More accurate error output