jPOS
jPOS copied to clipboard
Give warning when non-default env file can't be found
If an explicit env file and/or dir are set on the Q2 command line (options -E and -Ed ), maybe a WARNING should be given by Q2 if the file can't be found (or read).
Maybe even an ERROR :-)
If things are left at their default values (i.e. default environment to be found under cfg ), then it's admissible to show no warning, as this file is optional.
Looks good to me. PR?
What do you think the right approach should be?
WARNINGprinted byQ2when it starts, but merrily go onERRORmakingQ2fail altogether
(again, only for cases when an explicit environment file and/or path have been given, different from cfg/default)
I'd start with a WARNING, see how it looks, then we may choose to ERROR and exit.