Skip to content

Commit 6ed5579

Browse files
committed
ADD(angular2) show error-messages in dev-mode
1 parent ad4b51a commit 6ed5579

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/angular2/app/src/services/database.service.ts

+6
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@ import RxDB from 'rxdb/plugins/core';
1313

1414
// import modules
1515
import RxDBSchemaCheckModule from 'rxdb/plugins/schema-check';
16+
import RxDBErrorMessagesModule from 'rxdb/plugins/error-messages';
17+
1618
if (ENV === 'development') {
19+
// in dev-mode we show full error-messages
20+
RxDB.plugin(RxDBErrorMessagesModule);
21+
1722
// schema-checks should be used in dev-mode only
1823
RxDB.plugin(RxDBSchemaCheckModule);
1924
}
2025

2126
import RxDBValidateModule from 'rxdb/plugins/validate';
2227
RxDB.plugin(RxDBValidateModule);
28+
2329
import RxDBLeaderElectionModule from 'rxdb/plugins/leader-election';
2430
RxDB.plugin(RxDBLeaderElectionModule);
2531

0 commit comments

Comments
 (0)