We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4be4575 commit 8453a93Copy full SHA for 8453a93
packages/runtime-common/virtual-network.ts
@@ -22,9 +22,7 @@ export type Handler = (req: Request) => Promise<Response | null>;
22
23
export class VirtualNetwork {
24
private nativeFetch = getNativeFetch();
25
-
26
private handlers: Handler[] = [];
27
28
private shimmedModules = new Map<string, Record<string, any>>();
29
30
shimModule(moduleIdentifier: string, module: Record<string, any>) {
@@ -50,9 +48,7 @@ export class VirtualNetwork {
50
48
);
51
49
52
if (!shimmedModule) {
53
- throw new Error(
54
- `Shimmed module not found but it should've been: ${request.url}`,
55
- );
+ throw new Error(`Shimmed module not found: ${request.url}`);
56
}
57
58
let response = new Response();
0 commit comments