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
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}`);
}
}
}