mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +00:00
qemu: fix error message miss
strErr is qemu log message, should add err in error message, or if fail before launch qemu, can not get corrent message. Fixes: #1991 Signed-off-by: Ace-Tang <aceapril@126.com>
This commit is contained in:
parent
1935bf193c
commit
50d4188524
@ -748,7 +748,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
|
||||
|
Loading…
Reference in New Issue
Block a user