Better error handling for PrepareNibs