We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 148f67a commit 80e70b9Copy full SHA for 80e70b9
cmd/cue/cmd/testdata/script/issue477.txt
@@ -0,0 +1,19 @@
1
+! cue cmd print
2
+
3
+cmp stderr expect-stderr
4
5
+-- x_tool.cue --
6
+package x
7
8
+import (
9
+ "strings"
10
+ "tool/cli"
11
+)
12
13
+command: print: cli.Print & {
14
+ text: "this is a test"
15
+}
16
17
+-- expect-stderr --
18
+imported and not used: "strings":
19
+ ./x_tool.cue:4:5
cue/instance.go
@@ -259,10 +259,10 @@ func (inst *Instance) Build(p *build.Instance) *Instance {
259
260
i := newInstance(idx, p, v)
261
if rErr != nil {
262
- i.setListOrError(err)
+ i.setListOrError(rErr)
263
}
264
if i.Err != nil {
265
+ i.setListOrError(i.Err)
266
267
268
if err != nil {
0 commit comments