From a2fd36f86c90263c7b6984384482e956d81c4905 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 26 Apr 2017 11:41:31 -0400 Subject: [PATCH] Provide second argument to validator.error with bind:checked errors --- src/validate/html/validateElement.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validate/html/validateElement.js b/src/validate/html/validateElement.js index beca2086ec..cda56ec730 100644 --- a/src/validate/html/validateElement.js +++ b/src/validate/html/validateElement.js @@ -25,7 +25,7 @@ export default function validateElement ( validator, node ) { } if ( getType( validator, node ) !== 'checkbox' ) { - validator.error( `'checked' binding can only be used with ` ); + validator.error( `'checked' binding can only be used with `, attribute.start ); } } @@ -99,4 +99,4 @@ function getType ( validator, node ) { function list ( items, conjunction = 'or' ) { if ( items.length === 1 ) return items[0]; return `${items.slice( 0, -1 ).join( ', ' )} ${conjunction} ${items[ items.length - 1 ]}`; -} \ No newline at end of file +}