I think you’re better of returning a more meaningful error from get_shoes/1
Example
{:error, {ShoesNotFound, "you forgot your shoes!"}}
# or
{:error, %ShoesNotFound{message: "you forgot your shoes!"}}
I think you’re better of returning a more meaningful error from get_shoes/1
Example
{:error, {ShoesNotFound, "you forgot your shoes!"}}
# or
{:error, %ShoesNotFound{message: "you forgot your shoes!"}}