diff --git a/src/cleanup.php b/src/cleanup.php index 3ce8aa9..18d2f1d 100644 --- a/src/cleanup.php +++ b/src/cleanup.php @@ -8,7 +8,7 @@ // we will then have $client and $repo available require('setup.php'); -$words=['Today!!','Overdue!!']; +$words=['Today!!','Overdue!!','Error!!']; // loop through the issues // we use getIssues() here rather than forIssues() (see https://git.jhodges.co.uk/jhodges/GiteaBot/issues/1) diff --git a/src/rrule.php b/src/rrule.php index af60fa1..1e38d6c 100755 --- a/src/rrule.php +++ b/src/rrule.php @@ -44,12 +44,12 @@ foreach($issues as $issue){ try{ $rrule = new RRule($rruletxt); }catch(Exception $e){ - $result="Error in RRULE\n```plain\n".$e->getMessage()."\n\n$rruletxt\n```\n"; + $result="Error!!\n\n```plain\n".$e->getMessage()."\n\n$rruletxt\n```\n"; $issue->addComment($result); continue; } }else{ //couldn't extract, report error - $issue->addComment("Can't extract RRULE:"); + $issue->addComment("Error!!\n\nCan't extract RRULE:"); continue; }