Author Topic: Confusing error "No such file or directory" when running a command with `current  (Read 1457 times)

Offline TonxCruz

  • Single posting newcomer
  • *
  • Posts: 1
Just posting here to help others. If you try to run a command with current_dir and you get an error saying "No such file or directory" it's not necessarily the dir path that doesn't exist - it may be the command itself (i. e. the command is not in PATH).
    .expect("command failed to run");
thread 'main' panicked at 'command failed to run: Os { code: 2, kind: NotFound, message: "No such file or directory" }'

Should I file an issue somewhere?

Offline AndrewCot

  • Almost regular
  • **
  • Posts: 239