Skip to content

Commit

Permalink
line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Aug 19, 2019
1 parent 4d1b106 commit c8f1f40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lighthouse-core/lib/i18n/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ function _processParsedElements(icuMessage, argumentElements, values = {}) {
for (const {id, format} of argumentElements) {
// Throw an error if a message's value isn't provided
if (id && (id in values) === false) {
// eslint-disable-next-line max-len
throw new Error(`ICU Message "${icuMessage}" contains a value reference ("${id}") that wasn't provided`);
throw new Error(`ICU Message "${icuMessage}" contains a value reference ("${id}") ` +
`that wasn't provided`);
}

// Direct `{id}` replacement and non-numeric values need no formatting.
Expand All @@ -207,7 +207,8 @@ function _processParsedElements(icuMessage, argumentElements, values = {}) {
const value = values[id];
if (typeof value !== 'number') {
// eslint-disable-next-line max-len
throw new Error(`ICU Message "${icuMessage}" contains a numeric reference ("${id}") but provided value was not a number`);
throw new Error(`ICU Message "${icuMessage}" contains a numeric reference ("${id}") ` +
'but provided value was not a number');
}

// Format values for known styles.
Expand Down

0 comments on commit c8f1f40

Please sign in to comment.