Skip to content

Commit a4ef277

Browse files
committed
Fixed typo in error message to account for both files and folders
1 parent ac292ce commit a4ef277

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2575,8 +2575,10 @@ bool YarpRobotLoggerDevice::saveCallback(const std::string& fileName,
25752575
// check if temp folder already exists
25762576
if (std::filesystem::exists(temp))
25772577
{
2578-
log()->error("{} The folder {} already exists. Please choose a different name.",
2578+
log()->error("{} Attempted to rename {} to {}, but it already exists. "
2579+
"Please choose a different name.",
25792580
logPrefix,
2581+
oldName,
25802582
temp);
25812583
return false;
25822584
}

0 commit comments

Comments
 (0)