Checks to avoid printing an error up the call stack.