Skip to content

chore: make errors more informative in the file-service #210

@yonatandt

Description

@yonatandt

The error classes are messy.
A duplicate index error (E11000 in mongo) should be one of the two:

  • FileExistsWithSameName (name-parent-owner)
  • FileExistsInS3 (bucket-key)

Both implements UniqueIndexExistsError which implements ClientError.
Both should

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions