fix dataspec error reporting

Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
Merge pull request #1343 from tardyp/dataspec

fix dataspec error reporting