Skip to content

Commit 1c15773

Browse files
add +1 to plugin index fails
1 parent 9b80f34 commit 1c15773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registry/domain/plugins-initialiser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function validatePlugins(plugins: unknown[]): asserts plugins is Plugin[] {
1717
) {
1818
throw new Error(
1919
strings.errors.registry.PLUGIN_NOT_VALID(
20-
(plugin as Plugin).name || String(idx)
20+
(plugin as Plugin).name || String(idx + 1)
2121
)
2222
);
2323
}

0 commit comments

Comments
 (0)