End-user should enjoy reading error messages around the PATH
(mis-)declaration.
#3357
Open
2 tasks done
Labels
A couple of tiny corner cases of error conditions that I caught for
settings.py
while devising the expandedtests/test_settings.py
Pytest unit test case file.EDIT: (snipped two error cases as unrelated to
load_source()
and transferred them to issue #3369.)Absolute outside subdirectory does not exist
Where
PATH="/no-such-directory"
is in/tmp/pelicanconf-invalid-PATH-1.py
and that (absolute-type) outside/no-such-directory
subdirectory does not exists.An ERROR message should have said:
/no-such-directory
directory (as defined inPATH
variable) does not exist.'Inaccessible Directory
Where
PATH="/tmp/pelican-unreadable-dir"
in/tmp/pelicanconf-invalid-PATH-2.py
and that/tmp/pelican-unreadable-dir
subdirectory has no read access required for this user to enter that subdirectory:An ERROR condition was missed and the program kept going along until it ran to an unrelated
THEME
error.It should have said:
User/Group Access Denied
When
PATH=/home/user-who-is-not-me
is used:It did not error out.
An ERROR message should have said:
Having the same error message for three(3) or 4 distinctive error conditions seems rather confusing to even the advanced end-user.
Platform
Click to expand
Platform
The text was updated successfully, but these errors were encountered: