feat(login): Add error logging for missing environment variables in login function

This commit is contained in:
Nicolai Ort 2025-06-04 18:54:07 +02:00
parent c0a9916604
commit bce84d128b
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -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)
}