Normalize error code for SMTP export handler

This commit is contained in:
Prem Palanisamy committed 2026-05-21 14:29:03 +01:00
1 parent 49f93f073a
commit e5fbe97d90
1 file changed
+1 -1
+1 -1
View File
@@ -1703,7 +1703,7 @@ class Appwrite extends Source
Resource::TYPE_SMTP,
Transfer::GROUP_SETTINGS,
message: $e->getMessage(),
code: $e->getCode(),
code: (int) $e->getCode() ?: Exception::CODE_INTERNAL,
previous: $e
));
}