From b3eea67983ef8bdfa814b097d3cdf6a952d4ea78 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 11 Feb 2024 21:49:39 -0600 Subject: compute control file if it doesn't exist Signed-off-by: Jeff Carr --- readControlFile.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'readControlFile.go') diff --git a/readControlFile.go b/readControlFile.go index 7b07430..9def952 100644 --- a/readControlFile.go +++ b/readControlFile.go @@ -2,6 +2,7 @@ package main import ( "bufio" + "errors" "os" "strings" @@ -13,6 +14,7 @@ func (c *controlBox) readControlFile() error { file, err := os.Open("control") if err != nil { log.Warn("readControlFile() could not find the file") + return errors.New("'control': file not found") } defer file.Close() -- cgit v1.2.3