Skip to content

Commit

Permalink
remove ns in err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Aug 29, 2024
1 parent e76d48c commit a41b9de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/cli/commands/engine/restart/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cli/cli/commands/engine/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a41b9de

Please sign in to comment.