summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--assemble_vintf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/assemble_vintf.cpp b/assemble_vintf.cpp
index 98fdae3..8b7e609 100644
--- a/assemble_vintf.cpp
+++ b/assemble_vintf.cpp
@@ -42,8 +42,9 @@ public:
42 static bool getFlag(const std::string& key, T* value) { 42 static bool getFlag(const std::string& key, T* value) {
43 const char *envValue = getenv(key.c_str()); 43 const char *envValue = getenv(key.c_str());
44 if (envValue == NULL) { 44 if (envValue == NULL) {
45 std::cerr << "Required " << key << " flag." << std::endl; 45 std::cerr << "Warning: " << key << " is missing, defaulted to " << (*value)
46 return false; 46 << std::endl;
47 return true;
47 } 48 }
48 49
49 if (!parse(envValue, value)) { 50 if (!parse(envValue, value)) {