add error message to fail file_prepare_directory