ttyper icon indicating copy to clipboard operation
ttyper copied to clipboard

Error when .config/ttyper/language directory does not exist

Open omarkohl opened this issue 3 years ago • 0 comments

$ ttyper --list-languages
thread 'main' panicked at 'Couldn't get installed languages under config directory.: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/main.rs:219:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The error disappears once I create $HOME/.config/ttyper/language .

My expectation, in order of preference:

  • No error. Just display an empty list because no languages are installed (or just the included ones, see #54 )
  • A more user friendly error that explains what directory to create

omarkohl avatar Jun 30 '22 09:06 omarkohl