Fix stupid typo (and add an error warning)

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>