summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-10-09 11:13:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-10-09 14:03:26 +0200
commit22d7f7b3a5d9bde58a3b6e59f5c9117faaea4673 (patch)
tree0da6ea3469d94ca434d1b2dbf7f07388ac4dfc05
parentofz: Invalid-enum-value (diff)
downloadcore-22d7f7b3a5d9bde58a3b6e59f5c9117faaea4673.tar.gz
core-22d7f7b3a5d9bde58a3b6e59f5c9117faaea4673.zip
Be more verbose why gcc-wrapper could not create process
Change-Id: I34f4209f1b830060a22ae38c05fe8a8e771c8f41 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104111 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--solenv/gcc-wrappers/wrapper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/solenv/gcc-wrappers/wrapper.cxx b/solenv/gcc-wrappers/wrapper.cxx
index 56936155fa47..abc0ed2864fc 100644
--- a/solenv/gcc-wrappers/wrapper.cxx
+++ b/solenv/gcc-wrappers/wrapper.cxx
@@ -262,7 +262,8 @@ int startprocess(string command, string args, bool verbose)
&si, // Startup Info
&pi) // Process Information
) {
- cerr << "Error: could not create process" << endl;
+ auto const e = GetLastError();
+ cerr << "Error: could not create process \"" << cmdlineBuf << "\": " << e << endl;
exit(1);
}