Fixing error message display for big query statements