Due to how fmt.Errorf() formats strings, unlike fmt.Println(), a newline is not automatically appended to the string. This leads to things like:
e.g. %s is not a directory:
jeremys-macbook:~ jeremymorris$ goplantuml ./some_file.py
usage:
goplantum <DIR>
DIR Must be a valid directory
./some_file.py is not a directoryjeremys-macbook:~ jeremymorris$
e.g. could not find directory %s:
jeremys-macbook:~ jeremymorris$ goplantuml help
usage:
goplantum <DIR>
DIR Must be a valid directory
could not find directory helpjeremys-macbook:~ jeremymorris$
NOTE: Notice the goplantum <DIR> in my examples. That was also in the output, it looks to be a typo.
Due to how
fmt.Errorf()
formats strings, unlikefmt.Println()
, a newline is not automatically appended to the string. This leads to things like:e.g.
%s is not a directory
:e.g.
could not find directory %s
:NOTE: Notice the
goplantum <DIR>
in my examples. That was also in the output, it looks to be a typo.