anchor.diff:      case check_undo_process() of
   	ok ->
   	    Res=wrangler:rename_var(Fname, Line, Col, NewName, SearchPaths),
  -	    case Res of 
  -		{ok, _} ->
  -		    check_wrangler_error_logger();
  -		{error, _} -> ok
  -	    end,
  +	    check_wrangler_error_logger(),
   	    Res;		
   	{error, Reason} ->
   	    {error, Reason}
  
positive.code: -spec(generalise/7::(filename(),integer(), integer(),integer(), integer(),string(), dir()) -> {ok, string()} | {error, string()}).
  generalise(Fname, StartLine, StartCol, EndLine, EndCol, ParName, SearchPaths)->
      case check_undo_process() of 
  	ok -> wrangler:generalise(Fname, {StartLine, StartCol}, {EndLine, EndCol}, ParName, SearchPaths);
  	{error, Reason} ->
  	    {error, Reason}
      end.
  
negative.code: 	    ok
      end.
  
  check_wrangler_error_logger() ->
      Errors = wrangler_error_logger:get_logged_errors(),
      case Errors of 
  	[] ->
  	     ok;
  	_ ->  io:format("\n===============================WARNING===============================\n"),
  	      io:format("There are errors in the program, and functions/attribute containing errors are not affected by the refactoring process.\n"),
  	      lists:foreach(fun({FileName, Errs}) ->
  				    Errs1 = lists:map(fun({Pos, _Mod, Msg}) -> {Pos, Msg} end, Errs),
  				    io:format("File:\n ~p\n", [FileName]),
  				    io:format("Error(s):\n"),
  				    lists:foreach(fun({Pos, Msg}) -> io:format(" ** ~p:~s **\n", [Pos, Msg]) end, lists:reverse(Errs1)) %% lists:flatten(Msg)
  			    end, Errors)
      end.
      
  