improve log output

This commit is contained in:
Philipp Kunz 2016-06-21 16:25:03 +02:00
parent b9d1080829
commit c03e17d522
2 changed files with 7 additions and 3 deletions

6
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,9 @@ export class Qenv {
//handle missing variables //handle missing variables
if (this.missingEnvVars.length > 0){ if (this.missingEnvVars.length > 0){
plugins.beautylog.error("Some Env variables could not be resolved:") plugins.beautylog.info("Required Env Vars are:")
console.log(this.requiredEnvVars);
plugins.beautylog.error("However some Env variables could not be resolved:");
console.log(this.missingEnvVars); console.log(this.missingEnvVars);
if(failOnMissing){ if(failOnMissing){
plugins.beautylog.error("Exiting!") plugins.beautylog.error("Exiting!")