Skip to content

Commit 14c16bf

Browse files
committed
fix(curl): suggest a path every project serves when the URL is missing
1 parent 354d42b commit 14c16bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/nuxt-cli/src/commands

‎packages/nuxt-cli/src/commands/curl.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default defineCommand({
100100
constcwd=resolveRootDir(ctx.args)
101101
constinput=ctx.args.url
102102
if(!input){
103-
logger.error(`Missing URL. Try ${styleText('cyan','nuxt curl /api/hello')}.`)
103+
logger.error(`Missing URL. Try ${styleText('cyan','nuxt curl /')}.`)
104104
process.exit(1)
105105
}
106106

0 commit comments

Comments
 (0)