@chromahq/react 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -160,7 +160,11 @@ const BridgeProvider = ({
|
|
|
160
160
|
const timeout = setTimeout(() => {
|
|
161
161
|
if (pendingRef.current.has(id)) {
|
|
162
162
|
pendingRef.current.delete(id);
|
|
163
|
-
reject(
|
|
163
|
+
reject(
|
|
164
|
+
new Error(
|
|
165
|
+
`Request timed out after ${timeoutDuration} ms for key: ${key} with id: ${id} and payload: ${JSON.stringify(payload)}`
|
|
166
|
+
)
|
|
167
|
+
);
|
|
164
168
|
}
|
|
165
169
|
}, timeoutDuration);
|
|
166
170
|
try {
|