JS: Logging the right exception