diff --git a/ERRORS.md b/ERRORS.md
index b445788..bce51fd 100644
--- a/ERRORS.md
+++ b/ERRORS.md
@@ -331,9 +331,9 @@ You can fix this collision by providing a unique `exportName` prop with`` component prop `template` value must be a text with string reference to existing ``'s `id` prop.
@@ -347,7 +347,7 @@ It cannot be a shorthand or a dynamic value.
/>
```
-### `SB_SVELTE_CSF_CODEMOD_0002`
+### `SB_SVELTE_CSF_LEGACY_API_0002`
You are using legacy template API, with deprecated components.\
To enable support for legacy API, tweak this addon options in your _(`./.storybook/main.(j|t)s`)_ file:
diff --git a/src/utils/error.ts b/src/utils/error.ts
index 5ea157a..c9b22f7 100644
--- a/src/utils/error.ts
+++ b/src/utils/error.ts
@@ -18,7 +18,7 @@ export abstract class StorybookSvelteCSFError extends Error {
parserAnalyseDefineMeta: 'PARSER_ANALYSE_DEFINE_META',
parserAnalyseStory: 'PARSER_ANALYSE_STORY',
compiler: 'COMPILER',
- codemod: 'CODEMOD',
+ legacyAPI: 'LEGACY_API',
} as const;
/**
diff --git a/src/utils/error/codemod/index.ts b/src/utils/error/codemod/index.ts
index b58c80a..ccf17d5 100644
--- a/src/utils/error/codemod/index.ts
+++ b/src/utils/error/codemod/index.ts
@@ -4,7 +4,7 @@ import dedent from 'dedent';
import type { Attribute } from 'svelte/compiler';
export class InvalidTemplateAttribute extends StorybookSvelteCSFError {
- readonly category = StorybookSvelteCSFError.CATEGORY.codemod;
+ readonly category = StorybookSvelteCSFError.CATEGORY.legacyAPI;
readonly code = 1;
public documentation = true;
@@ -31,7 +31,7 @@ export class InvalidTemplateAttribute extends StorybookSvelteCSFError {
}
export class LegacyTemplateNotEnabledError extends StorybookSvelteCSFError {
- readonly category = StorybookSvelteCSFError.CATEGORY.codemod;
+ readonly category = StorybookSvelteCSFError.CATEGORY.legacyAPI;
readonly code = 2;
public documentation = true;