add promise error logging fix