Skip to content

Commit

Permalink
Use Diagnostic() inside Check()
Browse files Browse the repository at this point in the history
Now that we have a function to generate diagnostic output, we don't
have to construct it manually.

See opencontainers#4
  • Loading branch information
mndrix committed Jan 5, 2017
1 parent 1a7dac8 commit 53c5e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/tap.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (t *T) Check(function interface{}, description string) {
return
}

t.printf("# %s\n", err)
t.Diagnostic(err.Error())
t.Ok(false, description)
}

Expand Down

0 comments on commit 53c5e22

Please sign in to comment.