Logger returns entire err object in promise