mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user