Skip to content

Commit

Permalink
use codeErr type
Browse files Browse the repository at this point in the history
  • Loading branch information
1daidai1 committed Dec 10, 2024
1 parent 2d88fb3 commit 52eedd7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Utilities/PublicHeader/include/crane/PublicHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ enum class CraneErr : uint16_t {
kSystemErr, // represent the error which sets errno
kExistingTask,
kInvalidParam,
kInvalidUser,
kInvalidQos,
kInvalidTimeLimit,
kInvaildCpusperTask,
kInvaildNodeList,
kInvalidExNodeList,
kStop,
kPermissionDenied,

Expand Down Expand Up @@ -225,7 +219,6 @@ const std::unordered_map<crane::grpc::ErrCode, std::string_view> ErrCodeStrMap =

}


inline std::string_view CraneErrStr(CraneErr err) {
return Internal::CraneErrStrArr[uint16_t(err)];
}
Expand Down

0 comments on commit 52eedd7

Please sign in to comment.