Skip to content

Commit ae64c4b

Browse files
committed
chore(watchConsumer): update error msg on pre hook
1 parent fea1431 commit ae64c4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/WatchConsumer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export const watchConsumer = (ops: IWatchConsumer) => {
287287
if (strict || exceptionOnFailure) {
288288
return next(
289289
new Error(
290-
`Denormalization failed for feild: ${toPath}, array: ${groupArray}, PLUGIN: watchConsumer, METHOD: save,consumer: ${this.model}, provider: ${fromRef}`
290+
`Denormalization failed for feild: ${toPath}, array: ${groupArray}, plugin: watchConsumer, method: save, consumer: ${toRef}, provider: ${fromRef}`
291291
)
292292
);
293293
} else {
@@ -314,7 +314,7 @@ export const watchConsumer = (ops: IWatchConsumer) => {
314314
if (strict || exceptionOnFailure) {
315315
return next(
316316
new Error(
317-
`Denormalization failed for feild: ${toPath}, array: ${groupArray}, PLUGIN: watchConsumer, METHOD: save, provider: ${fromRef}`
317+
`Denormalization failed for feild: ${toPath}, array: ${groupArray}, plugin: watchConsumer, method: save, consumer: ${toRef}, provider: ${fromRef}`
318318
)
319319
);
320320
} else {

0 commit comments

Comments
 (0)