Let's make 'unsupported' as array and use push() and join(). Also, can you change this line to create an Error object:

```
throw new Error('Unsupported COD options: ' + unsupported.join(', '));
```