main loads multiple

This commit is contained in:
vcptr
2019-12-14 23:48:56 +08:00
parent 904db6bd61
commit 1e76123a4c
9 changed files with 118 additions and 96 deletions
+3 -1
View File
@@ -39,8 +39,10 @@ func Run(args []string, input io.Reader) (buf.MultiBuffer, error) {
}
return nil, newError(msg).Base(err)
}
// log stderr, info message
if !errBuffer.IsEmpty() {
newError("v2ctl > ", errBuffer.String()).AtInfo().WriteToLog()
newError("v2ctl > \n", errBuffer.MultiBuffer.String()).AtInfo().WriteToLog()
}
return outBuffer.MultiBuffer, nil