UNPKG
@measey/mycoder-agent
Version:
latest (1.0.0)
1.0.0
Agent module for mycoder - an AI-powered software development assistant
mycoder.ai
measey/mycoder
@measey/mycoder-agent
/
dist
/
utils
/
errorToString.js
9 lines
•
243 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export
const
errorToString
= (
error
) => {
if
(error
instanceof
Error
) {
return
`
${error.constructor.name}
:
${error.message}
`
; }
else
{
return
JSON
.
stringify
(error); } };
//# sourceMappingURL=errorToString.js.map