IDEA-126464: add error description, log exception
avoid duplication and save on separators
do not use toString for FilePath