File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/xforms-engine/src/instance/children Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4
4
} from '@getodk/common/constants/xmlns.ts' ;
5
5
import type { GroupDefinition } from '../../client/GroupNode.ts' ;
6
6
import type { SubtreeDefinition } from '../../client/SubtreeNode.ts' ;
7
+ import { ErrorProductionDesignPendingError } from '../../error/ErrorProductionDesignPendingError.ts' ;
7
8
import { StaticDocument } from '../../integration/xpath/static-dom/StaticDocument.ts' ;
8
9
import type { StaticLeafElement } from '../../integration/xpath/static-dom/StaticElement.ts' ;
9
10
import { StaticElement } from '../../integration/xpath/static-dom/StaticElement.ts' ;
@@ -188,7 +189,9 @@ type AssertStaticLeafElement = (element: StaticElement) => asserts element is St
188
189
189
190
const assertStaticLeafElement : AssertStaticLeafElement = ( element ) => {
190
191
if ( ! element . isLeafElement ( ) ) {
191
- throw new Error ( ) ;
192
+ throw new ErrorProductionDesignPendingError (
193
+ `Expected a leaf element, got a non-leaf element at nodeset: ${ element . nodeset } `
194
+ ) ;
192
195
}
193
196
} ;
194
197
You can’t perform that action at this time.
0 commit comments