This is a promise, so the err is the second function, the first one only handles success.