Skip to content

Commit

Permalink
fix(core): tweak error message
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Nov 15, 2022
1 parent d011b01 commit 9d0fc4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/computePosition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export const computePosition: ComputePosition = async (
if (!reference || !floating) {
console.error(
[
`Floating UI: One or both of the reference and floating elements is`,
`not defined yet. Ensure that both elements are created and can be`,
`measured at the time computePosition() is called.`,
'Floating UI: The reference and/or floating element was not defined',
'when `computePosition()` was called. Ensure that both elements have',
'been created and can be measured.',
].join(' ')
);
}
Expand Down

0 comments on commit 9d0fc4f

Please sign in to comment.