Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Aug 20, 2023
1 parent f2b17c7 commit 613515b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/utils/npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func GetNpmConfigCache(srcPath, executablePath string, npmArgs []string, log uti
data, errData, err := RunNpmCmd(executablePath, srcPath, AppendNpmCommand(append(npmArgs, "--json=false"), "config"), log)
// Some warnings and messages of npm are printed to stderr. They don't cause the command to fail, but we'd want to show them to the user.
if len(errData) > 0 {
log.Warn("error while running the command: '" + executablePath + " " + strings.Join(npmArgs, " ") + ":\n" + string(errData))
log.Warn("error while running the command '" + executablePath + " " + strings.Join(npmArgs, " ") + "' :\n" + string(errData))
}
if err != nil {
return "", fmt.Errorf("'%s %s' npm config command failed with an error: %s", executablePath, strings.Join(npmArgs, " "), err.Error())
Expand Down

0 comments on commit 613515b

Please sign in to comment.