Skip to content

Commit

Permalink
chore: update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Apr 9, 2024
1 parent a479ec8 commit 3528421
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ export default defineNuxtConfig({
'@kgierke/nuxt-basic-auth',
module
],
hub: {
database: true,
kv: true,
blob: true,
cache: true
},
ui: {
icons: ['heroicons', 'simple-icons']
},
Expand Down
7 changes: 2 additions & 5 deletions src/runtime/server/utils/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ export function requireNuxtHubFeature(feature: keyof typeof featureMessages) {
throw createError({
statusCode: 422,
statusMessage: 'Unprocessable Entity',
message: `"${feature}" not enabled`,
data: {
reason: featureMessages[feature]
}
message: featureMessages[feature]
})
}
}
}

0 comments on commit 3528421

Please sign in to comment.