Bound ordinary runs with attributable operation timeouts
This commit is contained in:
@@ -96,6 +96,8 @@ func mapUnownedPublicError(err error) error {
|
||||
|
||||
func publicErrorFor(err error) error {
|
||||
switch {
|
||||
case errors.Is(err, usecase.ErrOperationTimeout):
|
||||
return ErrOperationTimeout
|
||||
case errors.Is(err, promptdef.ErrPromptDefinitionNotFound):
|
||||
return ErrPromptNotFound
|
||||
case errors.Is(err, profile.ErrProfileNotFound):
|
||||
|
||||
Reference in New Issue
Block a user