autoclaw 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools/email.js +4 -1
- package/package.json +1 -1
package/dist/tools/email.js
CHANGED
|
@@ -42,7 +42,10 @@ export const EmailTool = {
|
|
|
42
42
|
return `Email sent successfully. Message ID: ${info.messageId}`;
|
|
43
43
|
}
|
|
44
44
|
catch (error) {
|
|
45
|
-
|
|
45
|
+
// Return detailed error info for debugging
|
|
46
|
+
const code = error.code ? `[Code: ${error.code}] ` : '';
|
|
47
|
+
const response = error.response ? ` (Server Response: ${error.response})` : '';
|
|
48
|
+
return `Failed to send email: ${code}${error.message}${response}`;
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
};
|