Unpack error object