An error was a type of mistake.
While speaking to Keiko O'Brien in the arboretum in 2367, Data said to her, "Since your action did not produce the desired results, the only advisable solution should be to re-examine your decision making process, and look for errors." (TNG: "Data's Day")