8741e5a800
Every CustomErrorBase subclass explicitly sets `name = 'ClassName' as const` except ServiceUnavailableError, which relied on the constructor fallback that reads `this.constructor.name`. This is fragile under minification. Added the explicit name property for consistency and added a serialization round-trip test. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
179 B
179 B
@backstage/errors
| @backstage/errors |
|---|
| patch |
Added explicit name property to ServiceUnavailableError for consistency with all other error classes, making it resilient to minification.