UNPKG
mycoder-agent
Version:
latest (1.7.0)
1.7.0
1.6.0
1.5.0
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.0
0.6.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2.1
0.2.0
0.1.4
0.1.3
Agent module for mycoder - an AI-powered software development assistant
mycoder.ai
drivecore/mycoder
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