Skip to content

Commit

Permalink
Update artifactory/commands/dotnet/dotnetcommand.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yahav Itschak <[email protected]>
  • Loading branch information
sverdlov93 and yahavi authored Jan 8, 2025
1 parent 2b347b8 commit 17f4f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artifactory/commands/dotnet/dotnetcommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func RemoveSourceFromNugetConfigIfExists(cmdType dotnet.ToolchainType, customCon
if strings.Contains(stdOut+stdErr, "Unable to find") || strings.Contains(stdOut+stdErr, "does not exist") {
return nil
}
return fmt.Errorf("failed to remove source: %w\n%s", err, strings.TrimSpace(stdOut+stdErr))
return errorutils.CheckErrorf("failed to remove source: %w\n%s\n%s", err, strings.TrimSpace(stdOut), strings.TrimSpace(stdErr))
}
return nil
}
Expand Down

0 comments on commit 17f4f5f

Please sign in to comment.