Skip to content

Commit cd9028f

Browse files
committed
feat(host-target): include full User-Agent in error message
1 parent af1782c commit cd9028f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

host-targets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function upsertHints(target, ua, terms, hints) {
178178
if (target[key] !== hints[key]) {
179179
let msg = `'${key}' already set to '${target[key]}', not updated to '${hints[key]}'`;
180180
target.errors.push({ [key]: hints[key], message: msg, terms: terms });
181-
throw new Error(`${msg} for '${terms}'`);
181+
throw new Error(`${msg} for '${ua}' / '${terms}'`);
182182
}
183183
}
184184
}

0 commit comments

Comments
 (0)