Skip to content

Commit

Permalink
removed error-logs
Browse files Browse the repository at this point in the history
Signed-off-by: shinigami-777 <[email protected]>
  • Loading branch information
shinigami-777 committed Oct 15, 2024
1 parent 772afb8 commit b130dd0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/models/remote_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1671,19 +1671,15 @@ func (l *RemoteProvider) SaveMesheryPattern(tokenString string, pattern *Meshery
switch resp.StatusCode {
case http.StatusRequestEntityTooLarge:
err = ErrPost(fmt.Errorf("failed to send design %s to remote provider %s: Design file is too large to upload. Reduce the file size and try again", pattern.Name, l.ProviderName), "", resp.StatusCode)
l.Log.Error(err)
return bdr, err
case http.StatusUnauthorized:
err = ErrPost(fmt.Errorf("failed to send design %s to remote provider %s: Unauthorized access. Check your credentials.", pattern.Name, l.ProviderName), "", resp.StatusCode)
l.Log.Error(err)
return bdr, err
case http.StatusBadRequest:
err = ErrPost(fmt.Errorf("failed to send design %s to remote provider %s: Bad request. The design might be corrupt.", pattern.Name, l.ProviderName), "", resp.StatusCode)
l.Log.Error(err)
return bdr, err
default:
err = ErrPost(fmt.Errorf("failed to send design %s to remote provider %s. Check if the design is valid or undo recent changes.", pattern.Name, l.ProviderName), "", resp.StatusCode)
l.Log.Error(err)
return bdr, err
}
}
Expand Down

0 comments on commit b130dd0

Please sign in to comment.