GNU bug report logs - #51829
Better error message for mcron file loading

Previous Next

Package: guix-patches;

Reported by: Ahmed Khanzada <me <at> enzu.ru>

Date: Sun, 14 Nov 2021 04:45:02 UTC

Severity: normal

Tags: wontfix

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51829 in the body.
You can then email your comments to 51829 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#51829; Package guix-patches. (Sun, 14 Nov 2021 04:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ahmed Khanzada <me <at> enzu.ru>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 14 Nov 2021 04:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ahmed Khanzada <me <at> enzu.ru>
To: guix-patches <at> gnu.org
Subject: Better error message for mcron file loading
Date: Sat, 13 Nov 2021 23:34:18 -0500
I was a bit puzzled why mcron was failing; based on the error, I assumed
file permissions, and did not realize the actual problem was my faulty
syntax within a file.

Until we can get more detailed error messages in place, I propose this
patch to make the current generic error we have slightly more helpful.
 
diff --git a/src/mcron/scripts/mcron.scm b/src/mcron/scripts/mcron.scm
index 4c5f7b5..3e581fa 100644
--- a/src/mcron/scripts/mcron.scm
+++ b/src/mcron/scripts/mcron.scm
@@ -93,7 +93,7 @@ $XDG_CONFIG_HOME is not defined uses ~/.config/cron instead)."
                               "/cron")))
     (when (eq? 2 errors)
       (mcron-error 13
-        "Cannot read files in your ~/.config/cron (or ~/.cron) directory."))))
+        "There was an error reading files in your ~/.config/cron (or ~/.cron) directory. Double-check the folder and file permissions and syntax."))))
 
 
 




Information forwarded to guix-patches <at> gnu.org:
bug#51829; Package guix-patches. (Wed, 17 Nov 2021 16:10:01 GMT) Full text and rfc822 format available.

Message #8 received at 51829 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ahmed Khanzada <me <at> enzu.ru>
Cc: 51829 <at> debbugs.gnu.org
Subject: Re: bug#51829: Better error message for mcron file loading
Date: Wed, 17 Nov 2021 17:09:28 +0100
Hi,

Ahmed Khanzada <me <at> enzu.ru> skribis:

> I was a bit puzzled why mcron was failing; based on the error, I assumed
> file permissions, and did not realize the actual problem was my faulty
> syntax within a file.
>
> Until we can get more detailed error messages in place, I propose this
> patch to make the current generic error we have slightly more helpful.
>  
> diff --git a/src/mcron/scripts/mcron.scm b/src/mcron/scripts/mcron.scm

Could you send this patch to bug-mcron <at> gnu.org?

Thanks,
Ludo’.




Added tag(s) wontfix. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 17 Nov 2021 16:10:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 51829 <at> debbugs.gnu.org and Ahmed Khanzada <me <at> enzu.ru> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 17 Nov 2021 16:10:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 16 Dec 2021 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.