Skip to content

Commit

Permalink
DevTools: Format error message (#21580)
Browse files Browse the repository at this point in the history
To support GitHub API fuzzy issue search
  • Loading branch information
Brian Vaughn committed May 27, 2021
1 parent 3c23414 commit d75105f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-devtools-shared/src/inspectedElementCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function inspectElement(
if (rendererID == null) {
const rejectedRecord = ((newRecord: any): RejectedRecord);
rejectedRecord.status = Rejected;
rejectedRecord.value = `Could not inspect element with id ${element.id}`;
rejectedRecord.value = `Could not inspect element with id "${element.id}"`;

map.set(element, record);

Expand All @@ -134,7 +134,7 @@ export function inspectElement(
if (newRecord.status === Pending) {
const rejectedRecord = ((newRecord: any): RejectedRecord);
rejectedRecord.status = Rejected;
rejectedRecord.value = `Could not inspect element with id ${element.id}`;
rejectedRecord.value = `Could not inspect element with id "${element.id}"`;
wake();
}
},
Expand Down

0 comments on commit d75105f

Please sign in to comment.