diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-03-20 11:28:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-20 11:28:04 +0100 |
commit | 0f554020c0e45302b7c9c0006f82faaacdcdd83b (patch) | |
tree | b4c054632d8034cadf25e6aed686371a61de77ea /src/models | |
parent | Merge pull request #713 from meetfranz/develop (diff) | |
parent | Update changelog [ci skip] (diff) | |
download | ferdium-app-0f554020c0e45302b7c9c0006f82faaacdcdd83b.tar.gz ferdium-app-0f554020c0e45302b7c9c0006f82faaacdcdd83b.tar.zst ferdium-app-0f554020c0e45302b7c9c0006f82faaacdcdd83b.zip |
Merge pull request #808 from meetfranz/release/5.0.0-beta.17v5.0.0-beta.17
Franz 5.0.0 beta.17
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Recipe.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/models/Recipe.js b/src/models/Recipe.js index 1fc23ac89..032a9aa19 100644 --- a/src/models/Recipe.js +++ b/src/models/Recipe.js | |||
@@ -32,8 +32,12 @@ export default class Recipe { | |||
32 | throw Error(`Recipe '${data.name}' requires Id`); | 32 | throw Error(`Recipe '${data.name}' requires Id`); |
33 | } | 33 | } |
34 | 34 | ||
35 | if (!semver.valid(data.version)) { | 35 | try { |
36 | throw Error(`Version ${data.version} of recipe '${data.name}' is not a valid semver version`); | 36 | if (!semver.valid(data.version)) { |
37 | throw Error(`Version ${data.version} of recipe '${data.name}' is not a valid semver version`); | ||
38 | } | ||
39 | } catch (e) { | ||
40 | console.warn(e.message); | ||
37 | } | 41 | } |
38 | 42 | ||
39 | this.id = data.id || this.id; | 43 | this.id = data.id || this.id; |