Add check for all env variables (fail fast).
This commit is contained in:
parent
9bce5a1968
commit
089f8e6b2b
2 changed files with 11 additions and 0 deletions
9
.maestro/scripts/checkEnv.js
Normal file
9
.maestro/scripts/checkEnv.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// This array contains all the required environment variable. When adding a variable, add it here also.
|
||||
// If a variable is missing, an error will occur.
|
||||
|
||||
if (APP_ID == null) throw "Fatal: missing env variable APP_ID"
|
||||
if (USERNAME == null) throw "Fatal: missing env variable USERNAME"
|
||||
if (PASSWORD == null) throw "Fatal: missing env variable PASSWORD"
|
||||
if (ROOM_NAME == null) throw "Fatal: missing env variable ROOM_NAME"
|
||||
if (INVITEE1_MXID == null) throw "Fatal: missing env variable INVITEE1_MXID"
|
||||
if (INVITEE2_MXID == null) throw "Fatal: missing env variable INVITEE2_MXID"
|
||||
Loading…
Add table
Add a link
Reference in a new issue