Completely agree…

Forgetting to check any given err value leads to potentially undefined behaviour.