Skip to content

Commit

Permalink
Add unsupported error message (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
prankulmahajan authored Aug 11, 2022
1 parent c664a31 commit c240a6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/messages/messages_en.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ var messagesEn = map[string]Message{
Type: codes.Unimplemented,
Action: "Please do not use this method as its not implemented yet",
},
MethodUnsupported: {
Code: MethodUnsupported,
Description: "'%s' CSI interface method is not supported",
Type: codes.Unimplemented,
Action: "Please do not use this method as its unsupported",
},
MissingVolumeName: {
Code: MissingVolumeName,
Description: "Volume name not provided",
Expand Down
3 changes: 3 additions & 0 deletions pkg/messages/reason_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const (
// MethodUnimplemented ...
MethodUnimplemented = "MethodUnimplemented"

// MethodUnsupported ...
MethodUnsupported = "MethodUnsupported"

// MissingVolumeName ...
MissingVolumeName = "MissingVolumeName"

Expand Down

0 comments on commit c240a6c

Please sign in to comment.