chore: add docs link to generator error (#6765)

* chore: add docs link to generator error

* chore: add scheme to URL
This commit is contained in:
Beka Westberg
2023-01-12 20:53:53 +00:00
committed by GitHub
parent 954899f4c7
commit a9d6c7b9cc

View File

@@ -278,7 +278,10 @@ export class CodeGenerator {
// Value blocks must return code and order of operations info.
// Statement blocks must only return code.
if (!Array.isArray(tuple)) {
throw TypeError('Expecting tuple from value block: ' + targetBlock.type);
throw TypeError(
`Expecting tuple from value block: ${targetBlock.type} See ` +
`https://developers.google.com/blockly/guides/create-custom-blocks/generating-code` +
`for more information`);
}
let code = tuple[0];
const innerOrder = tuple[1];