Fixed error message for invalid filename

Tweaked the error message for when the filename argument specifies a non-existent file or directory.