Skip to content

Commit

Permalink
Remove throw for unknown messages in hot-reloader-client (#57353)
Browse files Browse the repository at this point in the history
Ensures extra messages are ignored instead of throwing an error.
  • Loading branch information
timneutkens authored Nov 3, 2023
1 parent 53b684a commit 520fbc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ function processMessage(
return
}
default: {
throw new Error('Unexpected action ' + JSON.stringify(obj))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/app-dir/metadata-suspense/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createNextDescribe } from 'e2e-utils'

createNextDescribe(
'app dir - metadata dynamic routes',
'app dir - metadata dynamic routes suspense',
{
files: __dirname,
skipDeployment: true,
Expand Down

0 comments on commit 520fbc8

Please sign in to comment.