Skip to content

Commit

Permalink
[build] update error handler for api detach volume
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed May 31, 2024
1 parent 2037a21 commit 710c101
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vngcloud/services/compute/v2/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func (s *ComputeServiceV2) DetachBlockVolume(popts IDetachBlockVolumeRequest) ls
if _, sdkErr := s.VServerClient.Put(url, req); sdkErr != nil {
return lserr.SdkErrorHandler(sdkErr, errResp,
lserr.WithErrorVolumeNotFound(errResp),
lserr.WithErrorVolumeInProcess(errResp),
lserr.WithErrorVolumeAvailable(errResp)).
WithKVparameters("projectId", s.getProjectId(),
"volumeId", popts.GetBlockVolumeId(),
Expand Down

0 comments on commit 710c101

Please sign in to comment.