Skip to content

Commit

Permalink
fix(core): Fix error message (#6965)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Oct 10, 2024
1 parent 14ac872 commit ff85bbc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion langchain-core/src/messages/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ function _constructMessageFromParams(
});
} else {
throw new Error(
`Unable to coerce message from array: only human, AI, or system message coercion is currently supported.\n\nReceived:${params}`
`Unable to coerce message from array: only human, AI, or system message coercion is currently supported.\n\nReceived: ${JSON.stringify(
params,
null,
2
)}`
);
}
}
Expand Down

0 comments on commit ff85bbc

Please sign in to comment.