Skip to content

Commit 7e0fda7

Browse files
committed
improved error messages
1 parent d0c850c commit 7e0fda7

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/extension/components/ErrorComponent.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,26 @@ import React from 'react'
33
export function ErrorComponent() {
44
return (
55
<div style={{ fontWeight: 500, padding: '8px' }}>
6-
An error occurred while collecting the measures. To resolve this error,
7-
try these solutions:
6+
An error occurred while collecting the measures. This is possibly due to
87
<ul>
98
<li>
10-
Make sure you have registered a top level observer in your project.{' '}
9+
absence of register observer hook in your project.{' '}
1110
<a
1211
href="https://github.com/nitin42/react-perf-devtool/tree/v2#using-the-browser-extension"
1312
style={{ textDecoration: 'none' }}
13+
target="_blank"
1414
>
1515
See the detailed documentation
1616
</a>{' '}
17-
on how to register a top level listener (an observer) in your React
18-
project app.
17+
on how to register a top level observer in your React application.
1918
</li>
2019
<br />
21-
<li>Refresh the the page or reload the inspected window.</li>
20+
<li>your project is not using React.</li>
2221
</ul>
22+
<p>
23+
If above solutions don't work, then try reloading the plugin or close
24+
and reopen the inspected window.
25+
</p>
2326
</div>
2427
)
2528
}

0 commit comments

Comments
 (0)