Skip to content

Commit d542f6a

Browse files
simulating failed deployment in exercise 11.12
1 parent d15f7eb commit d542f6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ app.get('/version', (req, res) => {
1010
res.send('3') // change this string to ensure a new version deployed
1111
})
1212

13+
// delete line 16 for a successful deployment
1314
app.get('/health', (req, res) => {
15+
// eslint-disable-next-line no-constant-condition
16+
if (true) throw('error... ')
1417
res.send('ok')
1518
})
1619

0 commit comments

Comments
 (0)