mirror of
https://github.com/Xevion/bus-reminder.git
synced 2026-01-30 22:23:35 -06:00
Improve required environment variable error msg
This commit is contained in:
Vendored
+4
-1
@@ -31,7 +31,10 @@ if (_serverEnv.success === false) {
|
||||
'❌ Invalid environment variables:\n',
|
||||
...formatErrors(_serverEnv.error.format())
|
||||
);
|
||||
throw new Error('Invalid environment variables');
|
||||
|
||||
throw new Error(`Invalid environment variables (${
|
||||
_serverEnv.error.errors.map(({ path }) => path).join(', ')
|
||||
})`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user