Showing
1 changed file
with
9 additions
and
1 deletions
1 | +// api key | ||
1 | require('dotenv').config(); | 2 | require('dotenv').config(); |
2 | - | 3 | +try { |
4 | + if( process.env.TEST != "OKAY" ) { | ||
5 | + throw new Error( "키 오류 키파일을 확인하세요" ); | ||
6 | + } | ||
7 | +} | ||
8 | +catch( err ) { | ||
9 | + throw new Error(err); | ||
10 | +} | ||
3 | const rp = require("request-promise"); | 11 | const rp = require("request-promise"); |
4 | 12 | ||
5 | // Api URL | 13 | // Api URL | ... | ... |
-
Please register or login to post a comment