Skip to content

Commit 70b58f2

Browse files
committed
Fix incorrect TeaError classification
1 parent c6b9e45 commit 70b58f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useErrorHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function msg(err: TeaError): string {
9191
const { ctx } = err
9292

9393
switch (err.code()) {
94-
case 'spilt-tea-009':
94+
case 'spilt-tea-007':
9595
if (ctx.filename instanceof Path && !ctx.filename.string.startsWith(useConfig().prefix.string)) {
9696
// this yaml is being worked on by the user
9797
msg = `${ctx.filename.prettyLocalString()}: ${ctx.cause?.message ?? 'unknown cause'}`

0 commit comments

Comments
 (0)