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>
This commit is contained in:
Stephan Bergmann 2020-10-09 11:13:47 +02:00
parent ff8a2eda25
commit 22d7f7b3a5

View file

@ -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);
}