Skip to content

Commit cbe6b51

Browse files
authored
Branch was updated using the 'autoupdate branch' Actions workflow.
2 parents dbe4d08 + b22fe85 commit cbe6b51

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

content/admin/configuration/configuring-email-for-notifications.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Notification emails are sent if there is activity on a repository a user is watc
1818
Your dedicated technical account manager in {% data variables.contact.github_support %} can configure email for notifications to be sent through your SMTP server. Make sure you include the following details in your support request.
1919

2020
- Your SMTP server address
21+
- Login information to authenticate to the server: username and password
2122
- The port your SMTP server uses to send email
2223
- The domain name that your SMTP server will send with a HELO response, if any
2324
- The type of encryption used by your SMTP server
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
{% if enterpriseServerVersions contains currentVersion %}
2-
1+
{% if enterpriseServerVersions contains currentVersion or currentVersion == "github-ae@latest" %}
32
{% note %}
43

54
**Note**: You'll only receive email notifications if outbound email support is enabled on {% data variables.product.product_location %}. For more information, contact your site administrator.
65

76
{% endnote %}
8-
97
{% endif %}

lib/failbot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = class FailBot {
7676
* @param {Error} error
7777
* @param {any} metadata
7878
*/
79-
async sendException (error, metadata) {
79+
async sendException (error, metadata = {}) {
8080
const data = Object.assign({ app: this.app }, this.getFailbotContext(), metadata)
8181
const body = this.formatJSON(error, Object.assign({ app: this.app }, data))
8282

lib/handle-exceptions.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
process.on('uncaughtException', err => {
1+
const FailBot = require('./failbot')
2+
3+
process.on('uncaughtException', async err => {
24
if (err.code === 'MODULE_NOT_FOUND') {
35
console.error('\n\n🔥 Uh oh! It looks you are missing a required npm module.')
46
console.error('Please run `npm install` to make sure you have all the required dependencies.\n\n')
57
}
68

79
console.error(err)
10+
await FailBot.report(err)
11+
})
12+
13+
process.on('unhandledRejection', async err => {
14+
console.error(err)
15+
await FailBot.report(err)
816
})

0 commit comments

Comments
 (0)