mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
iris run: Remove duplicate code for os.Stderr
This commit is contained in:
@@ -40,12 +40,10 @@ func build(sourcepath string) error {
|
||||
|
||||
func run(executablePath string) (*utils.Cmd, error) {
|
||||
runCmd := utils.CommandBuilder("." + utils.PathSeparator + executablePath)
|
||||
|
||||
runCmd.Dir = workingDir
|
||||
runCmd.Stderr = os.Stderr
|
||||
runCmd.Stdout = os.Stdout
|
||||
|
||||
runCmd.Stderr = os.Stderr
|
||||
if err := runCmd.Start(); err != nil {
|
||||
ferr := errRun.Format(executablePath, err.Error())
|
||||
printer.Dangerf(ferr.Error())
|
||||
|
||||
Reference in New Issue
Block a user