Skip to content

Commit

Permalink
Fix condition to detect missing reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Feb 14, 2021
1 parent f5d6f82 commit d12dfb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion VContainer/Assets/VContainer/Runtime/Unity/LifetimeScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ LifetimeScope GetRuntimeParent()
UnityEditor.EnterPlayModeOptions.DisableDomainReload) > 0;
if (rootLifetimeScope == null && disableDomainReloading)
{
UnityEngine.Debug.LogError("VContainerSettings.RootLifetimeScope is missing. Please try to re-compile C# scripts just once.");
var path = UnityEditor.AssetDatabase.GetAssetPath(rootLifetimeScope);
if (!string.IsNullOrEmpty(path))
UnityEngine.Debug.LogError($"VContainerSettings.RootLifetimeScope is missing : {path}. Please try to re-compile C# scripts just once.");
}
#endif
if (rootLifetimeScope != null)
Expand Down

0 comments on commit d12dfb2

Please sign in to comment.