Skip to content

Commit 19c96c0

Browse files
committed
Merge branch 'v0.25_reference' of https://github.com/amohoste/firecracker-containerd into v0.25_reference
Signed-off-by: Amory Hoste <[email protected]>
2 parents 6d3265d + 45eba1d commit 19c96c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/service.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"context"
1919
"encoding/json"
2020
"fmt"
21+
"io/ioutil"
2122
"math"
2223
"net"
2324
"net/http"
@@ -2144,7 +2145,8 @@ func (s *service) SendLoadSnapRequest(loadSnapReq *http.Request) error {
21442145
}
21452146

21462147
if !strings.Contains(resp.Status, "204") {
2147-
return errors.New(fmt.Sprintf("Failed to load VM from snapshot, status %s", resp.Status))
2148+
respStr, _ := ioutil.ReadAll(resp.Body)
2149+
return errors.New(fmt.Sprintf("Failed to load VM from snapshot: status %s, %s", resp.Status, respStr))
21482150
}
21492151

21502152
return nil

0 commit comments

Comments
 (0)