changes e.message to e.msg because the former doesn't actually work