Added error messages.

Change-Id: I1880b744c24b47144849324ec6ae7bfd4af0f237