From d7c20d952b8f77c2281d72cbc57bcc1034038df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1sp=C3=A1r=20J=C3=B3zsef=20D=C3=A1niel?= Date: Sat, 13 Apr 2024 09:10:10 +0200 Subject: [PATCH] Fix callback error messages --- .../DataStructures/TypeSafeDictionaryMethods.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/com.sebaslab.svelto.ecs/DataStructures/TypeSafeDictionaryMethods.cs b/com.sebaslab.svelto.ecs/DataStructures/TypeSafeDictionaryMethods.cs index 50436d5..9b5eb5e 100644 --- a/com.sebaslab.svelto.ecs/DataStructures/TypeSafeDictionaryMethods.cs +++ b/com.sebaslab.svelto.ecs/DataStructures/TypeSafeDictionaryMethods.cs @@ -134,7 +134,7 @@ namespace Svelto.ECS.Internal } catch { - Console.LogError("Code crashed inside Remove callback ".FastConcat(entityComponentsEngines[i].name)); + Console.LogError("Code crashed inside Dispose callback ".FastConcat(entityComponentsEngines[i].name)); throw; } @@ -160,7 +160,7 @@ namespace Svelto.ECS.Internal } catch { - Console.LogError("Code crashed inside Remove callback ".FastConcat(reactiveEnginesDisposeExPerType[i].name)); + Console.LogError("Code crashed inside Dispose callback ".FastConcat(reactiveEnginesDisposeExPerType[i].name)); throw; } @@ -376,7 +376,7 @@ namespace Svelto.ECS.Internal } catch (Exception) { - Console.LogError("Code crashed inside MoveTo callback ".FastConcat(reactiveEnginesSwapPerType[i].name)); + Console.LogError("Code crashed inside Swap callback ".FastConcat(reactiveEnginesSwapPerType[i].name)); throw; } @@ -569,7 +569,7 @@ namespace Svelto.ECS.Internal } catch (Exception e) { - Console.LogException(e, "Code crashed inside Add callback ".FastConcat(callbackEngines[i].name)); + Console.LogException(e, "Code crashed inside Swap callback ".FastConcat(callbackEngines[i].name)); throw; } @@ -595,7 +595,7 @@ namespace Svelto.ECS.Internal } catch (Exception e) { - Console.LogException(e, "Code crashed inside Add callback ".FastConcat(fasterList[i].name)); + Console.LogException(e, "Code crashed inside Remove callback ".FastConcat(fasterList[i].name)); throw; }