feat(login): Add error logging for missing environment variables in login function
This commit is contained in:
parent
c0a9916604
commit
bce84d128b
@ -8,6 +8,7 @@ export async function login() {
|
||||
const password = process.env.PASSWORD;
|
||||
|
||||
if (!user || !password || !OpenAPI.BASE) {
|
||||
console.error("Missing environment variables: BASE_URL, USER, PASSWORD");
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user