Add error message instead of just crash.