Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
cmd/cue/cmd: fix crash
Browse files Browse the repository at this point in the history
Fixes #261

Change-Id: If014a03a5c000b4e8ed90956d76664238e59f60d
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/4701
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
  • Loading branch information
mpvl committed Jan 16, 2020
1 parent f6f7791 commit 00757a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cue/cmd/vet.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func vetFiles(cmd *Command, inst *cue.Instance, files []string) {
r := internal.GetRuntime(inst).(*cue.Runtime)
for _, expr := range exprs {
body, err := r.CompileExpr(expr)
exitIfErr(cmd, inst, err, false)
exitIfErr(cmd, inst, err, true)
v := body.Value().Unify(check)
if err := v.Err(); err != nil {
exitIfErr(cmd, inst, err, false)
Expand Down

0 comments on commit 00757a9

Please sign in to comment.