Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit a9858be

Browse files
committedNov 27, 2019
⚡ improvement(mixin): change to custom blocks parse error
1 parent 5377103 commit a9858be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/mixin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @flow */
22

33
import VueI18n from './index'
4-
import { isPlainObject, warn, merge } from './util'
4+
import { isPlainObject, warn, error, merge } from './util'
55

66
export default {
77
beforeCreate (): void {
@@ -22,7 +22,7 @@ export default {
2222
})
2323
} catch (e) {
2424
if (process.env.NODE_ENV !== 'production') {
25-
warn(`Cannot parse locale messages via custom blocks.`, e)
25+
error(`Cannot parse locale messages via custom blocks.`, e)
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)
This repository has been archived.