Skip to content

Commit

Permalink
fix: storage operation failed type name instead of store (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Apr 16, 2024
1 parent 0fc7bd1 commit a99251e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/upload-api/src/errors.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import * as Server from '@ucanto/server'

export const StoreOperationErrorName = /** @type {const} */ (
'StoreOperationFailed'
export const StorageOperationErrorName = /** @type {const} */ (
'StorageOperationFailed'
)
export class StoreOperationFailed extends Server.Failure {
export class StorageOperationFailed extends Server.Failure {
get reason() {
return this.message
}

get name() {
return StoreOperationErrorName
return StorageOperationErrorName
}
}

Expand Down

0 comments on commit a99251e

Please sign in to comment.