fix error code in case of invalid archive type

Change-Id: Ibb4840a8bfe438f76cdcc57ff125485cbdb542c6
Merge "fix error code in case of invalid archive type"