mirror of
https://github.com/maaslalani/slides.git
synced 2026-01-10 06:48:01 -05:00
moar
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user