This is a good programming style to minimize as soon as possible when something goes wrong. Everything that you performed after that will be performed with the system in an unknown state.
If you are not going to handle the error value and do something, you write your code for a successful case. As in the following little sad cycle:
life() ->
ok = work(),
ok = rest(),
life().
source
share