xBOUT icon indicating copy to clipboard operation
xBOUT copied to clipboard

Missing files give an error of "Do not know how to read file extension"

Open dschwoerer opened this issue 2 years ago • 1 comments

It would be nice to give a more useful error:

  • Expected file name but got a folder
  • File does not exist

Maybe some more things we should check ... ?

dschwoerer avatar Nov 15 '23 08:11 dschwoerer

Is it just a matter of putting this line: https://github.com/boutproject/xBOUT/blob/467016021b8650e8e107936f8aa487cd5168eb97/xbout/load.py#L746

after the checks on filepaths in that function?

ZedThree avatar Nov 15 '23 09:11 ZedThree