I currently have something like:
``` Javascript
if (!pass_d) {
  console.log("Failed: ",len+"-ccm-decrypt #", index, "Pass?:", pass_d)
}
```
And also I do not throw if it fails but only set a variable to false and add a debug output at the very end stating that it failed.