Skip to content

Commit

Permalink
Update apps.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Sep 25, 2024
1 parent 9a5bc6a commit 98388a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/modules/apps/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default class Apps {
this.instances.map((app) =>
app.start().catch((error) => {
// We handle individual errors here to prevent apps start from throwing
// if a dingle app fails.
// if a single app fails.
app.state = 'unknown'
this.logger.error(`Failed to start app ${app.id}: ${error.message}`)
}),
Expand All @@ -146,9 +146,9 @@ export default class Apps {
await Promise.all(
this.instances.map((app) =>
app.stop().catch((error) => {
// We handle individual errors here to prevent apps start from throwing
// We handle individual errors here to prevent apps stop from throwing
// if a single app fails.
this.logger.error(`Failed to start app ${app.id}: ${error.message}`)
this.logger.error(`Failed to stop app ${app.id}: ${error.message}`)
}),
),
)
Expand Down

0 comments on commit 98388a4

Please sign in to comment.