(label: string, code: string | undefined)
| 190 | * exception. |
| 191 | */ |
| 192 | const stableMessage = (label: string, code: string | undefined): string => |
| 193 | code ? `FumaDB ${label} failed: ${code}` : `FumaDB ${label} failed`; |
| 194 | |
| 195 | export const isStorageFailure = (error: unknown): error is StorageFailure => |
| 196 | Predicate.isTagged(error, "StorageError") || |
no outgoing calls
no test coverage detected