mirror of
https://github.com/docker/cli.git
synced 2026-08-24 10:05:37 -05:00
cli/command/system: fix error formatting (errlint)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -273,7 +273,7 @@ func inspectAll(ctx context.Context, dockerCLI command.Cli, getSize bool, typeCo
|
||||
}
|
||||
return v, raw, err
|
||||
}
|
||||
return nil, nil, errors.Errorf("Error: No such object: %s", ref)
|
||||
return nil, nil, errors.Errorf("error: no such object: %s", ref)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ func TestInspectInvalidReference(t *testing.T) {
|
||||
result := icmd.RunCmd(icmd.Command("docker", "inspect", "FooBar"))
|
||||
result.Assert(t, icmd.Expected{
|
||||
Out: "[]",
|
||||
Err: "Error: No such object: FooBar",
|
||||
Err: "error: no such object: FooBar",
|
||||
ExitCode: 1,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user