As I know most of device just click to update is unsucessful with the erro code. You should download the ios firmware at first, then find the location of this firmware, and hold on shift+restore(Sorry I don't know how about Mac) to update. Backup your data, because update with normal method also will erase your data.