From a98f7f75413339e6d1f42c5d85b5e6dcca868c8d Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Fri, 25 Oct 2024 07:48:04 +0200 Subject: [PATCH] =?UTF-8?q?Added=20an=20=E2=80=9CInfo=E2=80=9D=20line=20in?= =?UTF-8?q?=20case=20state=20file=20is=20not=20found?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gancioff | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gancioff b/gancioff index d2793c4..0946ec6 100755 --- a/gancioff +++ b/gancioff @@ -295,6 +295,8 @@ if (file_exists($conf['state_file_absolute_path'])) { } fclose($fh); echo 'Info: got '.count($guids)." GUID(s) for already posted event(s) from state file «{$conf['state_file_absolute_path']}»; removed {$i} line(s) older than one year.\n"; +} else { + echo "Info: state file «{$conf['state_file_absolute_path']}» was not found.\n"; } if (($fh=@fopen($conf['state_file_absolute_path'],'a'))===false) dieYoung("Error: could not open «{$conf['state_file_absolute_path']}» in «append» mode.\n",1);