# Chapter 2 erratum - page 39 - code snippet doesn't compile

**URL:** <https://forums.kodeco.com/t/chapter-2-erratum-page-39-code-snippet-doesnt-compile/184985>\
**Category:** Server Side Swift with Vapor\
**Created:** [March 11, 2023, 8:55pm UTC](https://forums.kodeco.com/t/chapter-2-erratum-page-39-code-snippet-doesnt-compile/184985 "2023-03-11T20:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![titociuro](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/titociuro/32/108846_2.png) [@titociuro](https://forums.kodeco.com/u/titociuro)\
**Post date:** [March 11, 2023, 8:55pm UTC](https://forums.kodeco.com/t/chapter-2-erratum-page-39-code-snippet-doesnt-compile/184985/1 "2023-03-11T20:55:41Z")

</div>

`throws` is missing. It should be like this:

```auto
app.get("hello", ":name") { req async throws -> String in
    guard let name = req.parameters.get("name") else {
        throw Abort(.badRequest)
    }
    return "Hello, \(name)!"
}

```

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [March 14, 2023, 9:04am UTC](https://forums.kodeco.com/t/chapter-2-erratum-page-39-code-snippet-doesnt-compile/184985/2 "2023-03-14T09:04:58Z")

</div>

It should be inferred unless something has changed in a new Swift version. If you remove the `async throws` it should still compile - at least it does for me
