error strings should not be capitalized

Signed-off-by: Zechun Chen <zechun.chen@daocloud.io>
This commit is contained in:
Zechun Chen
2023-02-15 14:30:36 +08:00
parent 4b80a2be96
commit 39bac0dbef
4 changed files with 11 additions and 11 deletions

View File

@@ -65,12 +65,12 @@ var runCommand = cli.Command{
spec, err := os.ReadFile(context.Args().First())
if err != nil {
return fmt.Errorf("Failed to read sandbox config: %w", err)
return fmt.Errorf("failed to read sandbox config: %w", err)
}
ociSpec := oci.Spec{}
if err = json.Unmarshal(spec, &ociSpec); err != nil {
return fmt.Errorf("Failed to parse sandbox config: %w", err)
return fmt.Errorf("failed to parse sandbox config: %w", err)
}
client, ctx, cancel, err := commands.NewClient(context)