Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit37f76b1

Browse files
Error instead of warning on missing pages dir
1 parent1bf98ea commit37f76b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎bin/next-dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ clean(dir)
2727
// Check if pages dir exists and warn if not
2828
if(!(awaitexists(join(dir,'pages')))){
2929
if(awaitexists(join(dir,'..','pages'))){
30-
console.warn('> No `pages` directory found. Did you mean to run `next` in the parent (`../`) directory?')
30+
thrownewError('> No `pages` directory found. Did you mean to run `next` in the parent (`../`) directory?')
3131
}else{
32-
console.warn('> Couldn\'t find a `pages` directory. Please create one under the project root')
32+
thrownewError('> Couldn\'t find a `pages` directory. Please create one under the project root')
3333
}
3434
}
3535
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp