Re: [patch] improve error output

2015-11-29 Thread Georg Baum
Abdelrazak Younes wrote: I Abdel, I'll do what you suggested, with one exception: > LYXERR0("FileName::copyTo(): Could not copy file " << *this << " to " << > name); sting const error = fromqstr(f.errorString()); > if (!error.empty()) > LYXERR0(": " << error); This would add an unwanted

[patch] improve error output

2015-11-29 Thread Georg Baum
The investigation of bug 9139 showed that the error message we give when a file operation fails is not too clever. The attached patch improves this. It is still not optimal (since qt has a very limited set of error causes that are reported), but if we want to get the real error from the OS we

Re: [patch] improve error output

2015-11-29 Thread Abdelrazak Younes
Hi Georg, Few nitpicks inline. On 29/11/2015 18:53, Georg Baum wrote: The investigation of bug 9139 showed that the error message we give when a file operation fails is not too clever. The attached patch improves this. It is still not optimal (since qt has a very limited set of error causes