forked from TrueCloudLab/frostfs-sdk-go
[#276] Merge repo with frostfs-api-go
Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
This commit is contained in:
parent
5361f0eceb
commit
6ce73790ea
337 changed files with 66666 additions and 283 deletions
|
@ -3,7 +3,7 @@ package apistatus
|
|||
import (
|
||||
"encoding/binary"
|
||||
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/status"
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/status"
|
||||
)
|
||||
|
||||
// ServerInternal describes failure statuses related to internal server errors.
|
||||
|
@ -53,7 +53,7 @@ func (x ServerInternal) Message() string {
|
|||
|
||||
// WriteInternalServerErr writes err message to ServerInternal instance.
|
||||
func WriteInternalServerErr(x *ServerInternal, err error) {
|
||||
x.SetMessage(err.Error())
|
||||
x.v2.SetMessage(err.Error())
|
||||
}
|
||||
|
||||
// WrongMagicNumber describes failure status related to incorrect network magic.
|
||||
|
@ -192,7 +192,7 @@ const defaultNodeUnderMaintenanceMsg = "node is under maintenance"
|
|||
|
||||
// Error implements the error interface.
|
||||
func (x *NodeUnderMaintenance) Error() string {
|
||||
msg := x.Message()
|
||||
msg := x.v2.Message()
|
||||
if msg == "" {
|
||||
msg = defaultNodeUnderMaintenanceMsg
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue