aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
Diffstat (limited to 'vm')
-rw-r--r--vm/vmimpl/vmimpl.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm/vmimpl/vmimpl.go b/vm/vmimpl/vmimpl.go
index 8106d6166..6f2416494 100644
--- a/vm/vmimpl/vmimpl.go
+++ b/vm/vmimpl/vmimpl.go
@@ -96,6 +96,11 @@ type BootError struct {
}
func MakeBootError(err error, output []byte) error {
+ if len(output) == 0 {
+ // In reports, it may be helpful to distinguish the case when the boot output
+ // was collected, but turned out to be empty.
+ output = []byte("<empty boot output>")
+ }
var verboseError *osutil.VerboseError
if errors.As(err, &verboseError) {
return BootError{verboseError.Title, append(verboseError.Output, output...)}