Better notification messaging
Summary: 'Failed to start connection server' is a bit misleading. 'server-error' is used for both server and client errors. Changelog: Better notification messaging Reviewed By: aigoncharov Differential Revision: D34269045 fbshipit-source-id: f51a28fc0e9ba394b464e5bfca4d0e497f740b1b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9d2f11f505
commit
77ab722b52
@@ -46,7 +46,7 @@ export function connectFlipperServerToStore(
|
|||||||
|
|
||||||
server.on('server-error', (err) => {
|
server.on('server-error', (err) => {
|
||||||
notification.error({
|
notification.error({
|
||||||
message: 'Failed to start connection server',
|
message: 'Connection error',
|
||||||
description:
|
description:
|
||||||
err.code === 'EADDRINUSE' ? (
|
err.code === 'EADDRINUSE' ? (
|
||||||
<>
|
<>
|
||||||
@@ -62,7 +62,7 @@ export function connectFlipperServerToStore(
|
|||||||
{'' + err}
|
{'' + err}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>Failed to start Flipper server: {err.message ?? err}</>
|
<>{err.message ?? err}</>
|
||||||
),
|
),
|
||||||
duration: null,
|
duration: null,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user