Skip to content

Commit e55fbda

Browse files
committed
Add Warning when without username
1 parent 20f0acd commit e55fbda

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crawler/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ class Crawler {
88
constructor(username, { delay, cert }) {
99
this.username = username;
1010

11+
if (!username) {
12+
console.error('❌ 유저이름을 입력해주세요')
13+
process.exit(1);
14+
}
15+
1116
// options
1217
this.delay = delay;
1318
this.cert = cert;

0 commit comments

Comments
 (0)