diff options
-rw-r--r-- | Help/manual/cmake.1.rst | 2 | ||||
-rw-r--r-- | Source/cmake.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index 429cba4..e497890 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -266,7 +266,7 @@ Options Prints each trace line in a human-readable format. This is the default format. - ``json`` + ``json-v1`` Prints each line as a separate JSON document. Each document is separated by a newline ( ``\n`` ). It is guaranteed that no newline characters will be present inside a JSON document. diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 29ed61d..5f04ea3 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -759,7 +759,8 @@ void cmake::SetArgs(const std::vector<std::string>& args) const auto traceFormat = StringToTraceFormat(arg.substr(strlen("--trace-format="))); if (traceFormat == TraceFormat::TRACE_UNDEFINED) { - cmSystemTools::Error("Invalid format specified for --trace-format"); + cmSystemTools::Error("Invalid format specified for --trace-format. " + "Valid formats are human, json-v1."); return; } this->SetTraceFormat(traceFormat); |