Skip to content

Commit

Permalink
feat(add): cmd.add should print out any validation errors as a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Osterbind committed Feb 7, 2018
1 parent 3c0cebf commit 92bd873
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ func initDataset(name *repo.DatasetRef) {
ref := &repo.DatasetRef{}
err = req.Init(p, ref)
ExitIfErr(err)
if ref.Dataset.Structure.ErrCount > 0 {
printWarning(fmt.Sprintf("this dataset has %d validation errors", ref.Dataset.Structure.ErrCount))
}

ref.Peername = "me"
printSuccess("added new dataset %s", ref)
Expand Down

0 comments on commit 92bd873

Please sign in to comment.