Capture errors from docker log output

- Refactored logDockerResponse function to remove extra if-else nesting
- logDockerResponse func now returns an error if error was detected from the log stream
- logDockerResponse will check for msg.ErrorDetail.Message and bail if there's an error
This commit is contained in:
Dan Sosedoff
2019-03-01 21:16:43 -06:00
parent 1791f1fd44
commit 5330599c93
3 changed files with 35 additions and 20 deletions

View File

@@ -17,6 +17,9 @@ export GITHUB_TOKEN = $(shell cat ~/.config/github/token)
default: check
test:
go test -cover -short ./...
check:
$(ACT) -ra check