`format()` could be conveniently used here as well:

```js
throw new Error(format("Should be a %d  bytes key encoded as hexadecimal", size));
```