decentralised sync engine

refactor: more logging

serenity 06c8ae55 62b35fb1

Changed files
+4 -1
src
lib
utils
+4 -1
src/lib/utils/handshake.ts
···
error: httpResponseParseError,
data: handshakeResponseDataParsed,
} = httpSuccessResponseSchema.safeParse(handshakeResponseData);
-
if (!httpResponseParseSuccess)
+
if (!httpResponseParseSuccess) {
+
console.error("Parsing response failed.", httpResponseParseError);
+
console.error("Incoming data:", JSON.stringify(handshakeResponseData));
return {
ok: false,
error: z.treeifyError(httpResponseParseError),
};
+
}
const { data: handshakeData } = handshakeResponseDataParsed;