Skip to content

Commit 447be23

Browse files
authored
Merge pull request #161 from mattn/fix-export-unknown-format
Error on unknown export format
2 parents 9fdf6b8 + 80f0db2 commit 447be23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

export.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"errors"
45
"fmt"
56
"os"
67
"path/filepath"
@@ -74,5 +75,5 @@ func export(cfg *config, format, path string) error {
7475
case "upstart":
7576
return exportUpstart(cfg, path)
7677
}
77-
return nil
78+
return errors.New("unknown format: " + format)
7879
}

0 commit comments

Comments
 (0)