Only add error arguments if there is an error
Merge pull request #8 from Medium/jamie-error-failure

Only add error arguments if there is an error.