fix(users/Profpatsch/whatcd-resolver): show query error as html

We want the user thingy to see which error happened; it also gets
logged in the traces as before.

There’s another function which we should replace as well at one point.

Change-Id: I3d49edccd0e2088a45ac0138af9536b40dfa6848
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11660
Tested-by: BuildkiteCI
Autosubmit: Profpatsch <mail@profpatsch.de>
Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
Profpatsch 2024-05-13 19:12:21 +02:00 committed by clbot
parent c2f649f62e
commit 5c709131de
2 changed files with 60 additions and 38 deletions

View file

@ -500,7 +500,6 @@ runPgFormat pool sqlStatement = do
Pool.putResource localPool new
)
( \(pgFmt, _localPool) -> do
putStderrLn "Running with warm pgformatter"
ByteString.hPut pgFmt.stdinHdl sqlStatement
-- close stdin to make pg_formatter format (it exits …)
-- issue: https://github.com/darold/pgFormatter/issues/333