Revert "Replace throw with log error message."

This reverts commit 9c362668c24153066f746393f12f3869e095d523.

Keep throw error message, just fix the return value.

Change-Id: Ie084aa57d98e0afc30c6df76b9c87bb9a436749b
Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
1 file changed