# Ash Framework: Incorrect return of {:ok, ...} for bang (!) function  (page 20)

**URL:** <https://forum.devtalk.com/t/ash-framework-incorrect-return-of-ok-for-bang-function-page-20/195287>\
**Category:** PragProg Customers\
**Tags:** book-ash-framework, errata\
**Created:** [16 April 2025 19:21 UTC](https://forum.devtalk.com/t/ash-framework-incorrect-return-of-ok-for-bang-function-page-20/195287 "2025-04-16T19:21:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anirudh24seven](https://forum.devtalk.com/user_avatar/forum.devtalk.com/anirudh24seven/32/7327_2.png) [@anirudh24seven](https://forum.devtalk.com/u/anirudh24seven)\
**Post date:** [16 April 2025 19:21 UTC](https://forum.devtalk.com/t/ash-framework-incorrect-return-of-ok-for-bang-function-page-20/195287/1 "2025-04-16T19:21:08Z")

</div>

**Title** : Ash Framework: Incorrect return of {:ok, …} for bang (!) function (page 20)

In the section `Defining a destroy action`:

```auto
iex(3)> artist = Tunez.Music.get_artist_by_id!("the-artist-id")
{:ok, #Tunez.Music.Artist<id: "an-artist-id", ...>}

```

should be similar to the entry provided in page 19:

```auto
iex(3)> artist = Tunez.Music.get_artist_by_id!("the-artist-id")
#Tunez.Music.Artist<id: "an-artist-id", ...>

```

since we are calling the bang variant (`get_artist_by_id!`) instead of the normal variant (`get_artist_by_id`).

---

<div class="post-metadata">

**Author:** ![sevenseacat](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sevenseacat/32/5897_2.png) [@sevenseacat](https://forum.devtalk.com/u/sevenseacat)\
**Post date:** [17 April 2025 07:45 UTC](https://forum.devtalk.com/t/ash-framework-incorrect-return-of-ok-for-bang-function-page-20/195287/2 "2025-04-17T07:45:29Z")

</div>

Oh, good spotting! Thanks for picking that up - I’ll fix that for the next beta 😃
