Do not output log when errors are present. #200
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since we parse and display errors in
setStats(data)
to the log withthis.logText.log(formatOutput(stats))
, the errors from the normal log duplicate the messages with extra output. The simple fix is to not log output when we have errors we parsed and are displaying.Addresses #66
Success
![screen shot 2017-10-02 at 3 03 32 pm](https://user-images.githubusercontent.com/1738349/31101675-a406e79a-a783-11e7-8401-43cf8ca3efa5.png)
Failure
![screen shot 2017-10-02 at 3 03 48 pm](https://user-images.githubusercontent.com/1738349/31101704-b4cebac6-a783-11e7-904e-3ae25bcd236e.png)
cc @ryan-roemer @kenwheeler