Skip to content

Commit

Permalink
fix updateop error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
agentm committed May 13, 2024
1 parent 7aa767b commit 7266dd5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bin/SQL/Interpreter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ evalSQLInteractive sessionId conn safeFlag interactiveConsole command =
Left err -> pure $ DisplayRelationalErrorResult err
Right dbcExpr -> do
let hint = renderPretty dbcExpr
_ <- eHandler $ C.executeDatabaseContextExpr sessionId conn dbcExpr
pure $ DisplayHintWith ("Equivalent TutorialD: " <> hint) QuietSuccessResult
ret <- C.executeDatabaseContextExpr sessionId conn dbcExpr
case ret of
Left err -> barf err
Right () -> pure $ DisplayHintWith ("Equivalent TutorialD: " <> hint) QuietSuccessResult
TransactionGraphOp Commit -> do
eHandler $ C.commit sessionId conn
TransactionGraphOp Rollback -> do
Expand Down

0 comments on commit 7266dd5

Please sign in to comment.