Skip to content

Commit

Permalink
improve error text
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed May 12, 2023
1 parent 93c3b6b commit b13ae17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scriptlets/prevent-xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ export function preventXHR(source, propsToMatch, customResponseText) {
if (randomText) {
modifiedResponseText = randomText;
} else {
// FIXME: improve error text
logMessage(source, `Invalid range: ${customResponseText}`);
logMessage(source, `Invalid randomize parameter: '${customResponseText}'`);
}
}

Expand Down

0 comments on commit b13ae17

Please sign in to comment.