Fix Typo resulting in wrong error message

Change-Id: I62e91bcb3bfe73ea0d23f6cdf6938af10fffd8cc
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>