Fixed error handling which should be in location.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>