@dra2020/district-analytics 5.6.4 → 5.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +8 -3
- package/dist/cli.js.map +1 -1
- package/dist/district-analytics.js +8 -3
- package/dist/district-analytics.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -102855,6 +102855,10 @@ class AnalyticsSession {
|
|
|
102855
102855
|
// Using the the data in the analytics session, calculate all the
|
|
102856
102856
|
// analytics & validations, saving/updating the individual test results.
|
|
102857
102857
|
analyzePlan(bLog = false, overridesJSON) {
|
|
102858
|
+
// Return values:
|
|
102859
|
+
// * true = everything good
|
|
102860
|
+
// * false = should not have been called with empty plan
|
|
102861
|
+
// * exception = exception caught and logged on the console
|
|
102858
102862
|
try {
|
|
102859
102863
|
// Guard against being handed a map w/o any precincts assigned
|
|
102860
102864
|
if (U.isObjectEmpty(this.plan._planByGeoID))
|
|
@@ -102866,9 +102870,10 @@ class AnalyticsSession {
|
|
|
102866
102870
|
this._scorecard = score_1.scorePlan(this, this._profile, bLog, overridesJSON);
|
|
102867
102871
|
results_1.doAnalyzePostProcessing(this, bLog);
|
|
102868
102872
|
}
|
|
102869
|
-
catch (
|
|
102870
|
-
console.log("Exception caught by analyzePlan()");
|
|
102871
|
-
|
|
102873
|
+
catch (e) {
|
|
102874
|
+
console.log("Exception caught by analyzePlan().");
|
|
102875
|
+
console.log(e.message);
|
|
102876
|
+
throw e;
|
|
102872
102877
|
}
|
|
102873
102878
|
return true;
|
|
102874
102879
|
}
|