fix deprecation of e.message