Merge pull request #1992 from Ace-Tang/fix-error

qemu: fix error message miss
This commit is contained in:
Peng Tao 2019-08-23 19:53:19 +08:00 committed by GitHub
commit 1b2ec4e39e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -752,7 +752,7 @@ func (q *qemu) startSandbox(timeout int) error {
var strErr string
strErr, err = govmmQemu.LaunchQemu(q.qemuConfig, newQMPLogger())
if err != nil {
return fmt.Errorf("%s", strErr)
return fmt.Errorf("fail to launch qemu: %s, error messages from qemu log: %s", err, strErr)
}
err = q.waitSandbox(timeout) // the virtiofsd deferred checks err's value