Edit error messages
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
+3
-3
@@ -153,7 +153,7 @@ func (s *MultiService) Of(ctx context.Context, username string) ([]*Multi, *Resp
|
||||
// Copy a multireddit.
|
||||
func (s *MultiService) Copy(ctx context.Context, copyRequest *MultiCopyRequest) (*Multi, *Response, error) {
|
||||
if copyRequest == nil {
|
||||
return nil, nil, errors.New("copyRequest: cannot be nil")
|
||||
return nil, nil, errors.New("*MultiCopyRequest: cannot be nil")
|
||||
}
|
||||
|
||||
path := "api/multi/copy"
|
||||
@@ -180,7 +180,7 @@ func (s *MultiService) Copy(ctx context.Context, copyRequest *MultiCopyRequest)
|
||||
// Create a multireddit.
|
||||
func (s *MultiService) Create(ctx context.Context, createRequest *MultiCreateOrUpdateRequest) (*Multi, *Response, error) {
|
||||
if createRequest == nil {
|
||||
return nil, nil, errors.New("createRequest: cannot be nil")
|
||||
return nil, nil, errors.New("*MultiCreateOrUpdateRequest: cannot be nil")
|
||||
}
|
||||
|
||||
byteValue, err := json.Marshal(createRequest)
|
||||
@@ -211,7 +211,7 @@ func (s *MultiService) Create(ctx context.Context, createRequest *MultiCreateOrU
|
||||
// If the multireddit does not exist, it will be created.
|
||||
func (s *MultiService) Update(ctx context.Context, multiPath string, updateRequest *MultiCreateOrUpdateRequest) (*Multi, *Response, error) {
|
||||
if updateRequest == nil {
|
||||
return nil, nil, errors.New("updateRequest: cannot be nil")
|
||||
return nil, nil, errors.New("*MultiCreateOrUpdateRequest: cannot be nil")
|
||||
}
|
||||
|
||||
byteValue, err := json.Marshal(updateRequest)
|
||||
|
||||
Reference in New Issue
Block a user