started to add support for errors (since they are not passed as error codes) but not done this yet

Signed-off-by: Andy Higgs <andy@higgsdesign.com>