Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

fix string trim func in findErrorMessage func #2527

Merged
merged 1 commit into from
Oct 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/git/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func findErrorMessage(output io.Reader) string {
case strings.HasPrefix(sc.Text(), "ERROR fatal: "): // Saw this error on ubuntu systems
return sc.Text()
case strings.HasPrefix(sc.Text(), "error:"):
return strings.Trim(sc.Text(), "error: ")
return strings.TrimPrefix(sc.Text(), "error: ")
}
}
return ""
Expand Down