port25check: log the error message

This commit is contained in:
Girish Ramakrishnan
2022-03-03 09:58:58 -08:00
parent ef684d32a2
commit 59582d081a

View File

@@ -197,7 +197,7 @@ async function checkOutboundPort25() {
relay.status = false;
relay.value = `Connect to ${constants.PORT25_CHECK_SERVER} failed: ${error.message}. Check if port 25 (outbound) is blocked`;
client.destroy();
relay.errorMessage = `Connect to ${constants.PORT25_CHECK_SERVER} failed.`;
relay.errorMessage = `Connect to ${constants.PORT25_CHECK_SERVER} failed: ${error.message}`;
resolve(relay);
});
});