[Libreoffice-commits] core.git: solenv/gcc-wrappers
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Fri Oct 9 12:03:58 UTC 2020
solenv/gcc-wrappers/wrapper.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 22d7f7b3a5d9bde58a3b6e59f5c9117faaea4673
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Oct 9 11:13:47 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Oct 9 14:03:26 2020 +0200
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 at redhat.com>
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);
}
More information about the Libreoffice-commits
mailing list