| 94 | } |
| 95 | |
| 96 | void ConfigCompiler::CollectIncludes(std::vector<std::unique_ptr<Expression> >& expressions, |
| 97 | const String& file, const String& zone, const String& package) |
| 98 | { |
| 99 | try { |
| 100 | expressions.emplace_back(CompileFile(file, zone, package)); |
| 101 | } catch (const std::exception& ex) { |
| 102 | Log(LogWarning, "ConfigCompiler") |
| 103 | << "Cannot compile file '" |
| 104 | << file << "': " << DiagnosticInformation(ex); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Handles an include directive. |