(label: string, code: string | undefined)
| 171 | * exception. |
| 172 | */ |
| 173 | const stableMessage = (label: string, code: string | undefined): string => |
| 174 | code ? `FumaDB ${label} failed: ${code}` : `FumaDB ${label} failed`; |
| 175 | |
| 176 | export const isStorageFailure = (error: unknown): error is StorageFailure => |
| 177 | Predicate.isTagged(error, "StorageError") || |
no outgoing calls
no test coverage detected