Failjure has merged Snorres changes. Switching to official 2.0.0 release

Bumped version to 0.2.0
parent d8152edc
Pipeline #28088 passed with stage
in 55 seconds
......@@ -2,9 +2,6 @@
A wrapper around the wonderful failjure library for monadic like error handling in Clojure(Script).
A note of caution. The latest version of this library use a fork of Failjure to facilitate ClojureScript support.
See the [Snorremd/failjure tools-deps branch](https://github.com/snorremd/failjure/tree/tools-deps).
```
[no.nsd/fejlure "0.1.0"]
```
......@@ -13,7 +10,7 @@ See the [Snorremd/failjure tools-deps branch](https://github.com/snorremd/failju
fejl
1. handling som har uønskede konsekvenser eller er i modstrid med gældende regler
2. uønsket eller uheldig egenskab hos en person eller en ting
2. uønsket eller uheldig egenskab hos en person eller en ting
3. ukorrekt resultat, angivelse, oplysning el.lign.
4. ansvar for en uheldig hændelse, udvikling eller tilstand
......@@ -49,7 +46,7 @@ For ClojureScript you will have to import both Failure and Fejlure:
(fe/fail "My error message"
{:code 1234
:reason :foo-error}))
;; You can extract error data from an AnnotatedFailure
(fe/data error)
......@@ -93,7 +90,7 @@ Basically Failjure allows you to handle errors in a monadic fashion:
(if (clojure.string/blank? (field user))
(failjure/fail "Field is empty")
user))
(defn save-user
[user]
(try (db/save-user! user)
......
{:paths ["src"]
:deps {failjure {:git/url "https://github.com/snorremd/failjure.git"
:sha "803b5e48cab362624006bd70907f56c011fd64d8"}}
:deps {failjure {:mvn/version "2.0.0"}}
:aliases {:dev {:extra-paths ["test"]
:extra-deps {org.clojure/clojure {:mvn/version "1.10.0"}
......
(defproject no.nsd/fejlure "0.1.0"
(defproject no.nsd/fejlure "0.2.0"
:description "A wrapper around the wonderful failjure library for monadic like error handling in Clojure."
:url "https://gitlab.nsd.no/clojure/fejlure"
:license {:name "Eclipse Public License"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment