Skip to content

Commit

Permalink
Fix error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Nov 28, 2024
1 parent 91887b3 commit 9329848
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/agent/hooks/wrapRequire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,7 @@ export function rewritePackageName(
aliasForTesting: string
) {
if (!isRequireWrapped) {
throw new Error(
"Start the agent before calling __internalRewritePackageName(..)"
);
throw new Error("Start the agent before calling rewritePackageName(..)");
}

if (packages.length === 0) {
Expand Down

0 comments on commit 9329848

Please sign in to comment.