From a41b9de96c918ed1a6aa4e3cdcde1103af893b44 Mon Sep 17 00:00:00 2001 From: Tedi Mitiku Date: Thu, 29 Aug 2024 17:24:47 -0400 Subject: [PATCH] remove ns in err msg --- cli/cli/commands/engine/restart/restart.go | 4 ++-- cli/cli/commands/engine/start/start.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/cli/commands/engine/restart/restart.go b/cli/cli/commands/engine/restart/restart.go index f241d394b9..2e0a97de57 100644 --- a/cli/cli/commands/engine/restart/restart.go +++ b/cli/cli/commands/engine/restart/restart.go @@ -96,7 +96,7 @@ var RestartCmd = &lowlevel.LowlevelKurtosisCommand{ }, { Key: logRetentionPeriodFlagKey, - Usage: "The length of time that Kurtosis should keep logs for. Eg. if set to 168h, Kurtosis will remove all logs beyond 1 week. You can specify hours using \"h\" however Kurtosis currently only supports setting retention on a weekly basis.", + Usage: "The length of time that Kurtosis should keep logs for. Eg. if set to 168h, Kurtosis will remove all logs beyond 1 week. You can specify hours using 'h' however Kurtosis currently only supports setting retention on a weekly basis.", Shorthand: "", Type: flags.FlagType_String, Default: defaults.DefaultLogRetentionPeriod, @@ -173,7 +173,7 @@ func run(_ context.Context, flags *flags.ParsedFlags, _ *args.ParsedArgs) error } _, err = time.ParseDuration(logRetentionPeriodStr) if err != nil { - return stacktrace.Propagate(err, "An error occurred parsing provided log retention period '%v' into a duration. Ensure the provided value has the proper format of hours using \"h\".", logRetentionPeriodStr) + return stacktrace.Propagate(err, "An error occurred parsing provided log retention period '%v' into a duration. Ensure the provided value has the proper format of hours using 'h'.", logRetentionPeriodStr) } var engineClientCloseFunc func() error diff --git a/cli/cli/commands/engine/start/start.go b/cli/cli/commands/engine/start/start.go index 3eec586299..a7369eda11 100644 --- a/cli/cli/commands/engine/start/start.go +++ b/cli/cli/commands/engine/start/start.go @@ -97,7 +97,7 @@ var StartCmd = &lowlevel.LowlevelKurtosisCommand{ }, { Key: logRetentionPeriodFlagKey, - Usage: "The length of time that Kurtosis should keep logs for. Eg. if set to 168h, Kurtosis will remove all logs beyond 1 week. You can specify hours using \"h\" however Kurtosis currently only supports setting retention on a weekly basis.", + Usage: "The length of time that Kurtosis should keep logs for. Eg. if set to 168h, Kurtosis will remove all logs beyond 1 week. You can specify hours using 'h' however Kurtosis currently only supports setting retention on a weekly basis.", Shorthand: "", Type: flags.FlagType_String, Default: defaults.DefaultLogRetentionPeriod, @@ -169,7 +169,7 @@ func run(_ context.Context, flags *flags.ParsedFlags, _ *args.ParsedArgs) error } _, err = time.ParseDuration(logRetentionPeriodStr) if err != nil { - return stacktrace.Propagate(err, "An error occurred parsing provided log retention period '%v' into a duration. Ensure the provided value has the proper format of hours using \"h\".", logRetentionPeriodStr) + return stacktrace.Propagate(err, "An error occurred parsing provided log retention period '%v' into a duration. Ensure the provided value has the proper format of hours using 'h'.", logRetentionPeriodStr) } if engineVersion == defaultEngineVersion && isDebugMode {