From 023c1ba7a05cac62dddba4b8bb583a4acb703b59 Mon Sep 17 00:00:00 2001 From: "Ian A. Cook" <6866411+nai888@users.noreply.github.com> Date: Mon, 31 Dec 2018 09:50:49 -0600 Subject: [PATCH] Update documentation --- CHANGELOG.md | 1 + src/routes/Morph/MorphService.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cde3bff..81619b5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format of this changelog is based on [Keep a Changelog](https://keepachangel - Calculate number of Morph results that are different from last time. - Correctly display differences in Morph results or not depending on the option selected. +- Display any errors that are found in the Morph input. ## [v0.4.0](https://github.com/nai888/langua/compare/v0.3.1...v0.4.0) - 2018-12-30 diff --git a/src/routes/Morph/MorphService.js b/src/routes/Morph/MorphService.js index 382f1052..8b189402 100644 --- a/src/routes/Morph/MorphService.js +++ b/src/routes/Morph/MorphService.js @@ -247,6 +247,7 @@ class MorphService { const rewriteRules = this.splitRewriteRules(newData.rewriteRules) const soundChanges = this.splitSoundChanges(newData.soundChanges) + // Return the errors if there are any let allErrors = [] if (typeof categories[0] === 'string') allErrors = allErrors.concat(categories)