Commit 33cee927 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[WIP] Error Msg, another test, same bug.

parent 2590d283
Pipeline #301 failed with stage
......@@ -20,10 +20,9 @@ commentary with @some markup@.
module Gargantext.Database.Utils where
import Debug.Trace (trace)
import Prelude (String)
import Control.Monad ((>>))
import Data.Text (Text)
--import Data.Text (Text)
import Control.Monad.Error.Class (MonadError(..))
import Control.Lens (Getter, view)
import Control.Monad.Reader
......@@ -91,7 +90,7 @@ runPGSQuery' q a = mkCmd $ \conn -> PGS.query conn q a
runPGSQuery :: (MonadError err m, MonadReader env m,
PGS.FromRow r, PGS.ToRow q, MonadIO m, HasConnection env)
=> PGS.Query -> q -> m [r]
runPGSQuery q a = catchError (mkCmd $ \conn -> PGS.query conn q a)
runPGSQuery q a = mkCmd $ \conn -> catchError (PGS.query conn q a)
(\e -> putStrLn ("Text xxxxxxxxxxxxxxxxxxx" :: String)
--(\e -> putStrLn ((cs $ formatPGSQuery q a):: Text)
>> throwError e
......
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