@@ -1916,7 +1916,7 @@ func (s *service) PauseVM(ctx context.Context, req *proto.PauseVMRequest) (*empt
1916
1916
}
1917
1917
if ! strings .Contains (resp .Status , "204" ) {
1918
1918
s .logger .WithError (err ).Error ("Failed to pause VM" )
1919
- return nil , err
1919
+ return nil , errors . New ( "Failed to pause VM" )
1920
1920
}
1921
1921
1922
1922
return & empty.Empty {}, nil
@@ -1937,7 +1937,7 @@ func (s *service) ResumeVM(ctx context.Context, req *proto.ResumeVMRequest) (*em
1937
1937
}
1938
1938
if ! strings .Contains (resp .Status , "204" ) {
1939
1939
s .logger .WithError (err ).Error ("Failed to resume VM" )
1940
- return nil , err
1940
+ return nil , errors . New ( "Failed to resume VM" )
1941
1941
}
1942
1942
return & empty.Empty {}, nil
1943
1943
}
@@ -1973,7 +1973,7 @@ func (s *service) LoadSnapshot(ctx context.Context, req *proto.LoadSnapshotReque
1973
1973
if ! strings .Contains (resp .Status , "204" ) {
1974
1974
s .logger .WithError (err ).Error ("Failed to load VM from snapshot" )
1975
1975
s .logger .WithError (err ).Errorf ("Status of request: %s" , resp .Status )
1976
- return nil , err
1976
+ return nil , errors . New ( "Failed to load VM from snapshot" )
1977
1977
}
1978
1978
1979
1979
return & proto.LoadResponse {FirecrackerPID : strconv .Itoa (s .firecrackerPid )}, nil
@@ -1994,7 +1994,7 @@ func (s *service) CreateSnapshot(ctx context.Context, req *proto.CreateSnapshotR
1994
1994
}
1995
1995
if ! strings .Contains (resp .Status , "204" ) {
1996
1996
s .logger .WithError (err ).Error ("Failed to make snapshot of VM" )
1997
- return nil , err
1997
+ return nil , errors . New ( "Failed to make snapshot of VM" )
1998
1998
}
1999
1999
2000
2000
return & empty.Empty {}, nil
0 commit comments