Static analyzer was complaining that err wasn't being read because asserts get optimized out of release builds