Made error output more helpful