This commit is contained in:
Maas Lalani
2021-05-05 21:27:31 -04:00
parent eceb2c4914
commit ffca7026ee

View File

@@ -23,6 +23,9 @@ var root = &cobra.Command{
f := args[0]
s, err := os.Stat(f)
if err != nil {
return errors.New("could not read file")
}
if s.IsDir() {
return errors.New("must pass a file")
}