Update wrap.js

catchall.error should be called in catch block (was removed in commit 564f8e2ee65e6f9681bf975fe023750f80853a7a maybe by accident?)