Skip to content

Commit 5d8b3ea

Browse files
committed
Fix error message typo in validateStrings function
Remove extra single quote in error message template that was causing malformed output like `"'namespace" must be a string` instead of the correct `"namespace" must be a string`.
1 parent 2f492c3 commit 5d8b3ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function validateStrings(
158158
return true
159159
}
160160
if (throws) {
161-
throw new PurlError(`"'${name}" must be a string`)
161+
throw new PurlError(`"${name}" must be a string`)
162162
}
163163
return false
164164
}

0 commit comments

Comments
 (0)