Improve error logging in SharedAudioSystem (#6202)

This commit is contained in:
slarticodefast
2025-09-17 08:56:21 +02:00
committed by GitHub
parent a5047224bb
commit d398e3a75b

View File

@@ -437,7 +437,7 @@ public abstract partial class SharedAudioSystem : EntitySystem
protected TimeSpan GetAudioLength(string filename)
{
if (!filename.StartsWith('/'))
throw new ArgumentException("Path must be rooted");
throw new ArgumentException($"Path must be rooted. Path: {filename}");
return GetAudioLengthImpl(filename);
}