mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Improve error logging in SharedAudioSystem (#6202)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user