`switch` staement should have a `default:` statement with a generic error message something like the original:

```
    console.error("addMenuItem() -- unknown error: " + err + " when adding command: " + commandID);
```