Server error notification key
Summary: Add key for server error notifications as to prevent duplicates. Reviewed By: antonk52 Differential Revision: D47869240 fbshipit-source-id: 7c826ab07a8f92bd053200786ed990ad78bbfa67
This commit is contained in:
committed by
Facebook GitHub Bot
parent
176301979a
commit
d64af25eac
@@ -53,9 +53,11 @@ export function connectFlipperServerToStore(
|
|||||||
if (err.code === 'EADDRINUSE') {
|
if (err.code === 'EADDRINUSE') {
|
||||||
handeEADDRINUSE('' + err);
|
handeEADDRINUSE('' + err);
|
||||||
} else {
|
} else {
|
||||||
|
const text = err.message ?? err;
|
||||||
notification.error({
|
notification.error({
|
||||||
|
key: text,
|
||||||
message: 'Connection error',
|
message: 'Connection error',
|
||||||
description: <NotificationBody text={err.message ?? err} />,
|
description: <NotificationBody text={text} />,
|
||||||
duration: null,
|
duration: null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user