Bad code #1

Open
opened 2020-08-31 19:59:02 +00:00 by Ghost · 0 comments
throw new Error(
	"found %s when looking for %s",
	site.subject,
	siteSubject
);

outputs the string without replacing the %s with the correct strings. console.warn does it, but not new Error.
The line in question is on line 95 in greenlock-manager-test/tester.js

``` throw new Error( "found %s when looking for %s", site.subject, siteSubject ); ``` outputs the string without replacing the %s with the correct strings. console.warn does it, but not new Error. The line in question is on line 95 in greenlock-manager-test/tester.js
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/greenlock-manager-test.js#1
No description provided.