Unverified Commit 70cc5dc5 authored by Hong Minhee's avatar Hong Minhee
Browse files

Log raw document on failing JSON-LD parsing

[ci skip]
parent 971ddb8f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -109,7 +109,10 @@ export async function lookupObject(
    });
  } catch (error) {
    if (error instanceof TypeError) {
      logger.debug("Failed to parse JSON-LD document:\n{error}", { error });
      logger.debug(
        "Failed to parse JSON-LD document: {error}\n{document}",
        { error, document },
      );
      return null;
    }
    throw error;