mirror of https://github.com/harness/drone.git
feat: [CDE-357]: Removing error annotation from errors coming from resource limiters. (#2755)
* feat: [CDE-357]: Removing error annotation from errors coming from resource limiters.abhinav-harness-patch-1
parent
fdafa16687
commit
eeb4688b59
|
@ -81,7 +81,7 @@ func (c *Controller) Action(
|
|||
case enum.GitspaceActionTypeStart:
|
||||
err = c.gitspaceLimiter.Usage(ctx, space.ID)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("usage has exceeded limit, can not start any gitspaces: %w", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
c.gitspaceSvc.EmitGitspaceConfigEvent(ctx, gitspaceConfig, enum.GitspaceEventTypeGitspaceActionStart)
|
||||
|
|
|
@ -84,7 +84,7 @@ func (c *Controller) Create(
|
|||
|
||||
err = c.gitspaceLimiter.Usage(ctx, space.ID)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("usage has exceeded limit, can not create any gitspaces: %w", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// check if it's an internal repo
|
||||
|
|
Loading…
Reference in New Issue