Skip to content

Commit

Permalink
log tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Oct 7, 2024
1 parent c34a715 commit e8e0b0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from "node:path";
* Install the cloudflare KV cache handler
*/
export function patchCache(code: string, config: Config): string {
console.log("# patchCached");
console.log("# patchCache");

const cacheHandler = path.join(config.paths.internalPackage, "cli", "cache-handler.mjs");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function inlineMiddlewareManifestRequire(code: string, config: Config) {
);

if (patchedCode === code) {
throw new Error("Cache patch `inlineMiddlewareManifestRequire` not applied");
throw new Error("Patch `inlineMiddlewareManifestRequire` not applied");
}

return patchedCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function patchExceptionBubbling(code: string) {
const patchedCode = code.replace('_nextBubbleNoFallback = "1"', "_nextBubbleNoFallback = undefined");

if (patchedCode === code) {
throw new Error("Cache patch `patchExceptionBubbling` not applied");
throw new Error("Patch `patchExceptionBubbling` not applied");
}

return patchedCode;
Expand Down

0 comments on commit e8e0b0c

Please sign in to comment.