Skip to content

Commit

Permalink
Improve error messages length output in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
foteinigk committed Aug 7, 2024
1 parent 6d1a851 commit 5567324
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/txlib/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ func isValidResolutionPolicy(policy string) (IsValid bool) {
}

func truncateMessage(message string) string {

maxLength := 80
if len(message) > maxLength {
return message[:maxLength-2] + ".."
Expand Down

0 comments on commit 5567324

Please sign in to comment.