Paths in the error are put in single quotes

This commit is contained in:
Veloman Yunkan
2024-03-05 19:40:34 +04:00
committed by Matthieu Gautier
parent 0168764f4c
commit 068555de38
2 changed files with 14 additions and 14 deletions

View File

@ -47,11 +47,11 @@ void HumanReadableNameMapper::mapName(const Library& library, std::string name,
} else {
const auto& currentBook = library.getBookById(bookId);
auto alreadyPresentPath = library.getBookById(m_nameToId[name]).getPath();
std::cerr << "Path collision: " << alreadyPresentPath
<< " and " << currentBook.getPath()
<< " can't share the same URL path '" << name << "'."
<< " Therefore, only " << alreadyPresentPath
<< " will be served." << std::endl;
std::cerr << "Path collision: '" << alreadyPresentPath
<< "' and '" << currentBook.getPath()
<< "' can't share the same URL path '" << name << "'."
<< " Therefore, only '" << alreadyPresentPath
<< "' will be served." << std::endl;
}
}