Skip to content

Commit 9feab41

Browse files
committed
Fix formatting on error messages
1 parent a260f64 commit 9feab41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/app/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ func InitProjectSettings(c *Client, gitInfo git.GitData) (*ProjectInfo, error) {
9999
project, _, err := c.GetProject(gitInfo.ProjectPath(), &opt)
100100

101101
if err != nil {
102-
return nil, fmt.Errorf(fmt.Sprintf("Error getting project at %s", gitInfo.RemoteUrl), err)
102+
return nil, fmt.Errorf("error getting project at %s: %w", gitInfo.RemoteUrl, err)
103103
}
104104

105105
if project == nil {
106-
return nil, fmt.Errorf(fmt.Sprintf("Could not find project at %s", gitInfo.RemoteUrl), err)
106+
return nil, fmt.Errorf("could not find project at %s", gitInfo.RemoteUrl)
107107
}
108108

109109
projectId := fmt.Sprint(project.ID)

0 commit comments

Comments
 (0)