@@ -293,8 +293,8 @@ type getParallelResult struct {
293
293
const (
294
294
statusPrefixFailed = "!"
295
295
// Failed
296
- fmtInstallFailed = "! %s > install failed > %s "
297
- fmtUpgradeFailed = "! %s > upgrade failed > %s "
296
+ fmtInstallFailed = "! %s > install failed"
297
+ fmtUpgradeFailed = "! %s > upgrade failed"
298
298
// No change
299
299
fmtNoChange = "# %s > no change"
300
300
fmtAlreadyExists = "# %s > already exists"
@@ -343,7 +343,7 @@ func (cmd *getCmd) installPlugin(reposPath pathutil.ReposPath, repos *lockjson.R
343
343
}
344
344
done <- getParallelResult {
345
345
reposPath : reposPath ,
346
- status : fmt .Sprintf (fmtInstallFailed , reposPath , result . Error () ),
346
+ status : fmt .Sprintf (fmtInstallFailed , reposPath ),
347
347
err : result ,
348
348
}
349
349
return
@@ -357,11 +357,10 @@ func (cmd *getCmd) installPlugin(reposPath pathutil.ReposPath, repos *lockjson.R
357
357
if doUpgrade {
358
358
// when cmd.upgrade is true, repos must not be nil.
359
359
if repos == nil {
360
- msg := "-u was specified but repos == nil"
361
360
done <- getParallelResult {
362
361
reposPath : reposPath ,
363
- status : fmt .Sprintf (fmtUpgradeFailed , reposPath , msg ),
364
- err : errors .New ("failed to upgrade plugin: " + msg ),
362
+ status : fmt .Sprintf (fmtUpgradeFailed , reposPath ),
363
+ err : errors .New ("failed to upgrade plugin: -u was specified but repos == nil" ),
365
364
}
366
365
return
367
366
}
@@ -377,7 +376,7 @@ func (cmd *getCmd) installPlugin(reposPath pathutil.ReposPath, repos *lockjson.R
377
376
}
378
377
done <- getParallelResult {
379
378
reposPath : reposPath ,
380
- status : fmt .Sprintf (fmtUpgradeFailed , reposPath , result . Error () ),
379
+ status : fmt .Sprintf (fmtUpgradeFailed , reposPath ),
381
380
err : result ,
382
381
}
383
382
return
@@ -400,7 +399,7 @@ func (cmd *getCmd) installPlugin(reposPath pathutil.ReposPath, repos *lockjson.R
400
399
}
401
400
done <- getParallelResult {
402
401
reposPath : reposPath ,
403
- status : fmt .Sprintf (fmtInstallFailed , reposPath , result . Error () ),
402
+ status : fmt .Sprintf (fmtInstallFailed , reposPath ),
404
403
err : result ,
405
404
}
406
405
return
@@ -425,7 +424,7 @@ func (cmd *getCmd) installPlugin(reposPath pathutil.ReposPath, repos *lockjson.R
425
424
}
426
425
done <- getParallelResult {
427
426
reposPath : reposPath ,
428
- status : fmt .Sprintf (fmtInstallFailed , reposPath , result . Error () ),
427
+ status : fmt .Sprintf (fmtInstallFailed , reposPath ),
429
428
err : result ,
430
429
}
431
430
return
@@ -466,7 +465,7 @@ func (cmd *getCmd) installPlugconf(reposPath pathutil.ReposPath, pluginResult *g
466
465
}
467
466
done <- getParallelResult {
468
467
reposPath : reposPath ,
469
- status : fmt .Sprintf (fmtInstallFailed , reposPath , result . Error () ),
468
+ status : fmt .Sprintf (fmtInstallFailed , reposPath ),
470
469
err : result ,
471
470
}
472
471
return
0 commit comments