diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 99c99fa0eb..49675f7435 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,7 @@ +2002-08-01 John Levon + + * forkedcall.C: more details on error + 2002-07-29 Lars Gullik Bjønnes * lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim, diff --git a/src/support/forkedcall.C b/src/support/forkedcall.C index 912b13e855..6ba3bf3f10 100644 --- a/src/support/forkedcall.C +++ b/src/support/forkedcall.C @@ -254,8 +254,12 @@ pid_t Forkedcall::generateChild() pid_t cpid = ::fork(); if (cpid == 0) { // child execvp(syscmd, argv); - // If something goes wrong, we end up here: - lyxerr << "execvp failed: " + // If something goes wrong, we end up here + string args; + int i = 0; + while (argv[i] != 0) + args += string(" ") + argv[i++]; + lyxerr << "execvp of \"" << syscmd << args << "\" failed: " << strerror(errno) << endl; } #else