Always make 'Error' an object if there is a failure

Change-Id: Iee6af6d253a759470d5a2ca3162f5a7bd2245c18
Add constants.c into git

Change-Id: I21131cc773bb533fea28725003e9da05cbeef845