fix error message to show proper path