From 475d5e6d547159e31c404cb5a961db3b22617d40 Mon Sep 17 00:00:00 2001 From: minhduc0711 Date: Fri, 26 Nov 2021 12:10:18 +0700 Subject: [PATCH] [traffic] Improve an error msg --- .../simtools/gaml/extensions/traffic/driving/DrivingSkill.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simtools.gaml.extensions.traffic/src/simtools/gaml/extensions/traffic/driving/DrivingSkill.java b/simtools.gaml.extensions.traffic/src/simtools/gaml/extensions/traffic/driving/DrivingSkill.java index 0345f45dfd..bc02992d14 100644 --- a/simtools.gaml.extensions.traffic/src/simtools/gaml/extensions/traffic/driving/DrivingSkill.java +++ b/simtools.gaml.extensions.traffic/src/simtools/gaml/extensions/traffic/driving/DrivingSkill.java @@ -1266,7 +1266,7 @@ public IPath primComputePath(final IScope scope) throws GamaRuntimeException { } path = PathFactory.newInstance(graph, source, target, edges); } else { - throw GamaRuntimeException.error("either `nodes` or `target` must be specified", scope); + throw GamaRuntimeException.error("one of `nodes` or `target` must be non nil", scope); } // restore graph direction