Have flash() handle the error side of promises, too.