We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b90c763 commit 90b2bdaCopy full SHA for 90b2bda
src/stubs.ts
@@ -23,6 +23,10 @@ export const createFigma = (config: TConfig): PluginAPI => {
23
);
24
}
25
26
+ if (joinedConfig.simulateErrors && !item) {
27
+ throw new Error("Error: empty child");
28
+ }
29
+
30
if (
31
joinedConfig.simulateErrors &&
32
// @ts-ignore
@@ -40,6 +44,11 @@ export const createFigma = (config: TConfig): PluginAPI => {
40
44
if (!this.children) {
41
45
this.children = [];
42
46
47
48
+ if (joinedConfig.simulateErrors && !child) {
49
50
51
43
52
53
if (joinedConfig.simulateErrors && child.parent === this) {
54
throw new Error("Error: Node already inside parent");
0 commit comments