Curly braces around single then branches
Catching path inputs errors is now a bit more specific but still fails quietly.