fix: handle render errors (#3557)

This commit is contained in:
David Luzar 2021-05-09 21:43:36 +02:00 committed by GitHub
parent 91ab7f36e2
commit 6bebfe63be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 16 deletions

View file

@ -206,7 +206,7 @@ const drawElementOnCanvas = (
context.canvas.remove();
}
} else {
console.error(`Unimplemented type ${element.type}`);
throw new Error(`Unimplemented type ${element.type}`);
}
}
}