Define $errstr

Change-Id: I79671f257dbdcccb5f3b1f66b5c96555512ed431