mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Add logging to catch error
Some users are seeing empty moving sets. Why?
This commit is contained in:
parent
3b9e48ef80
commit
2f0d20bbc8
1 changed files with 11 additions and 1 deletions
|
|
@ -132,7 +132,17 @@ class WindowManager extends React.Component {
|
|||
)
|
||||
};
|
||||
|
||||
const box = boundingBox(moving);
|
||||
let box;
|
||||
try {
|
||||
box = boundingBox(moving);
|
||||
} catch (err) {
|
||||
console.error(
|
||||
`Could not construct bounding box for key: ${key}. moving.length is: ${
|
||||
moving.length
|
||||
}`
|
||||
);
|
||||
throw err;
|
||||
}
|
||||
|
||||
const handleMouseMove = ee => {
|
||||
const proposedDiff = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue