Added condition for PathError for source