Skip to content

Commit

Permalink
increase error msg length limit (#139)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Raszyk <martin.raszyk@dfinity.org>
  • Loading branch information
mraszyk and mraszyk authored Feb 2, 2023
1 parent ebedfe6 commit 80875f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IC/Test/Agent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ submitCall' cid req = do
assertBool "Response body not empty" (BS.null (responseBody res))
pure $ Right (getRequestStatus' (senderOf req) cid (requestId req))
else do
let msg = T.unpack (T.decodeUtf8With T.lenientDecode (BS.toStrict (BS.take 200 (responseBody res))))
let msg = T.unpack (T.decodeUtf8With T.lenientDecode (BS.toStrict (BS.take 1000 (responseBody res))))
pure $ Left (code, msg)

submitCall :: (HasCallStack, HasAgentConfig) => Blob -> GenR -> IO (IO (HTTPErrOr ReqStatus))
Expand Down

0 comments on commit 80875f3

Please sign in to comment.