errorInfo: ‘
extra switch pattern with no body
while executing
“switch -exact — $mode {
start {
The problem turned out to be comments embedded between the switch bodies like this:
switch -exact — $mode {
start {
…code here…
} ;# End of Start Section
run {
…run code here…
} ;# End of Run Section
shutdown {
…shutdown code here…
} ;# End of Shutdown Section
default {
}
We removed the comments “;# End of