diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts
index 4da159d31d..906bb229f9 100644
--- a/src/compiler/compile/nodes/Element.ts
+++ b/src/compiler/compile/nodes/Element.ts
@@ -653,10 +653,7 @@ export default class Element extends Node {
}
} else if (name === 'complete') {
if (this.name !== 'img') {
- component.error(binding, {
- code: `invalid-binding`,
- message: `'${binding.name}' binding can only be used with
`
- });
+ component.error(binding, compiler_errors.invalid_binding_element_with(binding.name, '
'));
}
} else if (name !== 'this') {
return component.error(binding, compiler_errors.invalid_binding(binding.name));