Skip to content

Commit

Permalink
⚡ improvement(mixin): change to custom blocks parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Nov 27, 2019
1 parent 5377103 commit a9858be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mixin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import VueI18n from './index'
import { isPlainObject, warn, merge } from './util'
import { isPlainObject, warn, error, merge } from './util'

export default {
beforeCreate (): void {
Expand All @@ -22,7 +22,7 @@ export default {
})
} catch (e) {
if (process.env.NODE_ENV !== 'production') {
warn(`Cannot parse locale messages via custom blocks.`, e)
error(`Cannot parse locale messages via custom blocks.`, e)
}
}
}
Expand Down

0 comments on commit a9858be

Please sign in to comment.