cli/command/system: fix error formatting (errlint)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-09-09 19:58:07 +02:00
parent c5150177bf
commit 9ba1314d3a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
}
}
+1 -1
View File
@@ -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,
})
}