[errors] refactor auth errors

Related to purescript-gargantext#600
4 jobs for 600-dev-invite-and-errors-fixes in 100 minutes and 6 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Stack
passed #10894
stack

00:06:02

 
  Cabal
passed #10895
cabal

00:41:57

 
  Bench
passed #10896
bench

00:26:32

 
  Test
failed #10897
test

00:25:33

 
Name Stage Failure
failed
test Test
Test suite garg-test-tasty: PASS
Test suite logged to:
/builds/gargantext/haskell-gargantext/dist-newstyle/build/x86_64-linux/ghc-8.10.7/gargantext-0.0.6.9.9.9.4.4/t/garg-test-tasty/test/gargantext-0.0.6.9.9.9.4.4-garg-test-tasty.log
1 of 1 test suites (1 of 1 test cases) passed.
Error: cabal: Failed to build test:garg-test-hspec from
gargantext-0.0.6.9.9.9.4.4.

Cleaning up file based variables
ERROR: Job failed: exit code 1