diff options
| author | Jeff Carr <[email protected]> | 2024-02-11 21:49:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-11 21:49:39 -0600 |
| commit | b3eea67983ef8bdfa814b097d3cdf6a952d4ea78 (patch) | |
| tree | fe778047cb42af629faf9a0a406cd588b8c001e4 /readControlFile.go | |
| parent | 98293e4bf9bdb91295f0cbe4653db3f9dcb2d701 (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.go | 2 |
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() |
