NetLogo/NetLogo — Issue #90: 5.0 regression: BehaviorSpace: varying a nonexistent variable results in bug dialog
Author: SethTisue
Created: 2012-02-22 13:14:56+00:00
State: open

It ought to give a normal runtime error dialog, instead of the big "report this bug!" thing with the stack trace. in 4.1 you just get:
```
Global variable does not exist: x
```

but in 5.0 you get e.g.:

```text
org.nlogo.lab.Worker$Runner$FailedException: Global variable does not exist:
MODEL
at
org.nlogo.lab.Worker$Runner$$anonfun$setVariables$1$4.apply(Worker.scala:126)
at
org.nlogo.lab.Worker$Runner$$anonfun$setVariables$1$4.apply(Worker.scala:122)
at
scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at org.nlogo.lab.Worker$Runner.setVariables$1(Worker.scala:122)
at org.nlogo.lab.Worker$Runner.callHelper(Worker.scala:158)
at org.nlogo.lab.Worker$Runner.call(Worker.scala:91)
at org.nlogo.lab.Worker$Runner.call(Worker.scala:74)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

NetLogo 5.0
```

reported by Roger Jovani