Changed type for final element in path to display reason for failure