I think these arguments would be better in reverse. Typically in error handling callbacks, the error argument comes first.