Fixed an issue with how I was testing for an error.