提交 28d6439a 编写于 作者: A Andrey Zhavoronkov 提交者: Nikita Manovich

don't generate additional log messages in case of send exception request was...

don't generate additional log messages in case of send exception request was failed with 0 status (#426)
上级 10c80610
......@@ -113,7 +113,12 @@ class LoggerHandler {
}
};
xhr.onerror = () => {
onreject();
// if status === 0 a request is a failure on the network level, ignore it
if (xhr.status === 0) {
resolve(xhr.response);
} else {
onreject();
}
};
xhr.send(JSON.stringify(exception.serialize()));
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册