GNOME Bugzilla – Bug 349756
Confusing Errormessage while opening Logfile
Last modified: 2008-12-24 08:50:16 UTC
While opening a Logfile which is read-proteced by permissions for the user running gnome-system-log, the program says "<file> is not a Logfile". The User should be informed that he is not allowed to read the logfile he want to open. Other information:
*** Bug 365058 has been marked as a duplicate of this bug. ***
Created attachment 96068 [details] [review] patch to add better error messages This patch fixes the bug, by separating three different error cases and giving corresponding messages. This patch still requires that the new strings involved be translated into further languages.
(In reply to comment #2) > Created an attachment (id=96068) [edit] > patch to add better error messages > > This patch fixes the bug, by separating three different error cases and giving > corresponding messages. This patch still requires that the new strings involved > be translated into further languages. > I should have specified that although this diff was taken against version 2.14 sources, I have edited the patch manually so that it can be applied to version 2.19. (There were very small changes to the source file between these two versions). Yours, Jack
I'm not sure this is an issue anymore with Logview trunk, as it has been rewritten and ported to GIO. I'll have a look at this later.
Fixed in trunk now. 2008-12-24 Cosimo Cecchi <cosimoc@gnome.org> * logview-log.c (log_load): * logview-log.h: Set a meaningful error message if we can't read from the log file (#349756).