Throw an error for invalid classes

This commit is contained in:
Patrick Niklaus
2017-08-14 22:18:57 +00:00
committed by Patrick Niklaus
parent 6339395cba
commit c6be2e768a
7 changed files with 63 additions and 6 deletions
+7 -3
View File
@@ -100,11 +100,15 @@ function setup()
'vehicle'
},
classes = Sequence {
'toll', 'motorway', 'ferry', 'restricted'
},
-- classes to support for avoid flags
avoidable = Sequence {
Set {"toll"},
Set {"motorway"},
Set {"ferry"}
Set {'toll'},
Set {'motorway'},
Set {'ferry'}
},
avoid = Set {