Don't use data when there is an error
Merge pull request #230 from mostlyserious/fix-error

Don't use data when there is an error