Modified exception message

This commit is contained in:
Kenneth Bruen 2022-07-11 22:41:08 +03:00
parent 9e5cf4f92f
commit bac2d1e1c7
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1

View file

@ -177,7 +177,7 @@ class PartialVisualSimulation with ChangeNotifier {
if (depId != null) { if (depId != null) {
_instances[instanceId] = await onRequiredDependency(depId); _instances[instanceId] = await onRequiredDependency(depId);
} else { } else {
throw Exception('Attempted to get instance of unknown component'); throw Exception('Attempted to get instance of unknown component: $instanceId');
} }
} }
return _instances[instanceId]!; return _instances[instanceId]!;