allow wrapped hooks to pass error through to node-orm