Check path length on adding them to the cache and log error if a path is too long.

This commit is contained in:
Ottermandias 2022-08-15 13:15:26 +02:00
parent 09417bd6c1
commit 5b5a1e2fd8
5 changed files with 10 additions and 5 deletions

View file

@ -87,7 +87,7 @@ public partial class ModCollection
return true;
}
PluginLog.Error( $"Could not add the redirection {path} to {fullPath}, the redirected path is too long." );
PluginLog.Error( $"The redirected path is too long to add the redirection\n\t{path}\n\t--> {fullPath}" );
return false;
}