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