From 3a09dd2b2f14d28d88c01d42d05cf985e189c6d3 Mon Sep 17 00:00:00 2001 From: adiantek Date: Sat, 3 Nov 2018 17:53:44 +0100 Subject: [PATCH] Update DictionaryNamesGenerator.ts --- .../identifier-names-generators/DictionaryNamesGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generators/identifier-names-generators/DictionaryNamesGenerator.ts b/src/generators/identifier-names-generators/DictionaryNamesGenerator.ts index ac23dc3c..476b2e9b 100644 --- a/src/generators/identifier-names-generators/DictionaryNamesGenerator.ts +++ b/src/generators/identifier-names-generators/DictionaryNamesGenerator.ts @@ -77,7 +77,7 @@ export class DictionaryNamesGenerator extends AbstractIdentifierNamesGenerator { public generate (): string { if (this.identifiers.length === 0) { - throw new Error("identifiersDictionary is empty"); + throw new Error("identifiersDictionary is empty. Add more words to identifiersDictionary"); } let itResult: IteratorResult = this.it.next(); if (itResult.done) { @@ -87,7 +87,7 @@ export class DictionaryNamesGenerator extends AbstractIdentifierNamesGenerator { itResult = this.it.next(); } if (itResult.done) { - throw new Error("Too many identifiers, try add more words to identifiersDictionary"); + throw new Error("Too many identifiers in JS code, add more words to identifiersDictionary"); } const identifierName: string = itResult.value;