MCPcopy
hub / github.com/IceWhaleTech/CasaOS / GetMsg

Function GetMsg

pkg/utils/common_err/e.go:121–127  ·  view source on GitHub ↗

获取错误信息

(code int)

Source from the content-addressed store, hash-verified

119
120// 获取错误信息
121func GetMsg(code int) string {
122 msg, ok := MsgFlags[code]
123 if ok {
124 return msg
125 }
126 return MsgFlags[SERVICE_ERROR]
127}

Callers 15

GetSearchResultFunction · 0.92
GetFilerContentFunction · 0.92
GetLocalFileFunction · 0.92
GetDownloadFileFunction · 0.92
GetDownloadSingleFileFunction · 0.92
DirPathFunction · 0.92
RenamePathFunction · 0.92
MkdirAllFunction · 0.92
PostCreateFileFunction · 0.92
GetFileUploadFunction · 0.92
PostFileUploadFunction · 0.92
PostFileOctetFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected