Skip to content

Commit

Permalink
Merge branch 'v0.25_reference' of https://github.com/amohoste/firecra…
Browse files Browse the repository at this point in the history
…cker-containerd into v0.25_reference

Signed-off-by: Amory Hoste <[email protected]>
  • Loading branch information
amohoste committed Apr 24, 2022
2 parents 6d3265d + 45eba1d commit 19c96c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"math"
"net"
"net/http"
Expand Down Expand Up @@ -2144,7 +2145,8 @@ func (s *service) SendLoadSnapRequest(loadSnapReq *http.Request) error {
}

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

return nil
Expand Down

0 comments on commit 19c96c0

Please sign in to comment.