added better error reporting

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>