summaryrefslogtreecommitdiff
path: root/readControlFile.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-11 21:49:39 -0600
committerJeff Carr <[email protected]>2024-02-11 21:49:39 -0600
commitb3eea67983ef8bdfa814b097d3cdf6a952d4ea78 (patch)
treefe778047cb42af629faf9a0a406cd588b8c001e4 /readControlFile.go
parent98293e4bf9bdb91295f0cbe4653db3f9dcb2d701 (diff)
compute control file if it doesn't exist
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'readControlFile.go')
-rw-r--r--readControlFile.go2
1 files changed, 2 insertions, 0 deletions
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()