Skip to content

Commit

Permalink
tc::io::VirtualFileSystem Fix typo in exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
jakcron committed Oct 23, 2024
1 parent 1e80c52 commit 570268e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/VirtualFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ tc::io::VirtualFileSystem::FileSystemSnapshot::DirEntry* tc::io::VirtualFileSyst
// if the path was not found in the map, throw exception
if (dir_itr == mFsSnapshot.dir_entry_path_map.end())
{
throw tc::io::DirectoryNotFoundException(kClassName + method_name, fmt::("Directory \"{}\" does not exist. (Path to Directory Index map had no match)", resolved_path));
throw tc::io::DirectoryNotFoundException(kClassName + method_name, fmt::format("Directory \"{}\" does not exist. (Path to Directory Index map had no match)", resolved_path.to_string()));
}
// if the dir_entry index isn't valid, throw exception
if (dir_itr->second >= mFsSnapshot.dir_entries.size())
{
throw tc::io::DirectoryNotFoundException(kClassName + method_name, fmt::("Directory \"{}\" does not exist. (Invalid Directory Index)", resolved_path));
throw tc::io::DirectoryNotFoundException(kClassName + method_name, fmt::format("Directory \"{}\" does not exist. (Invalid Directory Index)", resolved_path.to_string()));
}

return &(mFsSnapshot.dir_entries.at(dir_itr->second));
Expand Down

0 comments on commit 570268e

Please sign in to comment.