display error message if directories or files don't exist