Skip to content

Commit cdaaba0

Browse files
committed
Change error message
1 parent 8feeab8 commit cdaaba0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/helpers/indexImportGuard.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ t.test("it works", async (t) => {
3636
require("../index");
3737

3838
t.same(logs, [
39-
"AIKIDO: Zen has already been initialized. Please ensure that Zen is imported only once in your application, as importing it multiple times can lead to unexpected behavior.",
39+
"AIKIDO: Zen has already been initialized. This can lead to unexpected behavior and may be caused by cleaning the require cache or using multiple installations of Zen at the same time.",
4040
]);
4141
});

library/helpers/indexImportGuard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function checkIndexImportGuard(): boolean {
88
if (globalState[symbol]) {
99
// eslint-disable-next-line no-console
1010
console.error(
11-
"AIKIDO: Zen has already been initialized. Please ensure that Zen is imported only once in your application, as importing it multiple times can lead to unexpected behavior."
11+
"AIKIDO: Zen has already been initialized. This can lead to unexpected behavior and may be caused by cleaning the require cache or using multiple installations of Zen at the same time."
1212
);
1313

1414
return false;

0 commit comments

Comments
 (0)