Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Aug 1, 2023
1 parent e913e20 commit e2329d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/errtypes/errtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// and error is a reserved word :)
package errtypes

// NotFound is the error to use when a something is not found.
// NotFound is the error to use when something is not found.
type NotFound string

func (e NotFound) Error() string { return "error: not found: " + string(e) }
Expand All @@ -46,15 +46,15 @@ func (e PermissionDenied) Error() string { return "error: permission denied: " +
// IsPermissionDenied implements the IsPermissionDenied interface.
func (e PermissionDenied) IsPermissionDenied() {}

// AlreadyExists is the error to use when a resource something is not found.
// AlreadyExists is the error to use when a resource already exists and can't be overwritten.
type AlreadyExists string

func (e AlreadyExists) Error() string { return "error: already exists: " + string(e) }

// IsAlreadyExists implements the IsAlreadyExists interface.
func (e AlreadyExists) IsAlreadyExists() {}

// UserRequired represents an error when a resource is not found.
// UserRequired represents an error when a user could not be found from the context.
type UserRequired string

func (e UserRequired) Error() string { return "error: user required: " + string(e) }
Expand Down

0 comments on commit e2329d5

Please sign in to comment.