The sound distributed version control system

#190 Better error message for non-existent subcommands

Closed on December 7, 2020
marians on December 7, 2020
$ pijul doff
Error: No such file or directory (os error 2)

This error message is not very helpful. If the user doesn’t read the command again and notices the typo, the message is extremely confusing.

pmeunier added a change on December 7, 2020
pmeunier closed this discussion on December 7, 2020
theduke on December 7, 2020

@pmeunier a side note: you can just use eprintln! instead of writeln!(stderr()).

(Unless the point is to prevent panics when stderr can’t be written…)

pmeunier on December 8, 2020

Nope, that panics when piped to head.