Peeking at the result of a Doobie query using fs2 to materialize errors I came up with the code below.