Skip to content

FileNotFoundError when dir doesn't exist #34

@rdmarsh

Description

@rdmarsh

Describe the bug
If you use the "-o file" to output to a file and the directory doesn't exist you'll get this error: FileNotFoundError: [Errno 2] No such file or directory:

To Reproduce
Steps to reproduce the behavior:

  1. elm -o non_dir/file.out
  2. See error

Expected behavior
An error saying the dir doesn't exist: non_dir/file.out: No such file or directory

Screenshots
FileNotFoundError: [Errno 2] No such file or directory: 'non_dir/file.out'

Desktop (please complete the following information):

  • OS: macos 13.6 (22G120)
  • Terminal: GNU bash, version 5.2.15(1)-release (aarch64-apple-darwin22.1.0)
  • Version: elm, version 1.0.4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions