Updating error message with correct path