update path
output path in error message