An Italian pilot threatened to commit suicide by crashing a plane with passengers on board. His wife informed the police about his plans and he was stopped.
He was about to take control of a Rome to Japan flight but was substituted at the 11th hour, with passengers left unaware of the switch.
The incident, which has only now been revealed, happened in January, two months before Andreas Lubitz killed 149 people when he deliberately crashed his Germanwings jet while suffering mental health problems.
After the crash, it was revealed that Andreas Lubitz suffered from depression and that the airline knew about his condition.
The Italian pilot, who is in his 40s but has not been identified, was already known to police after his wife reported him for mistreatment, it was reported by The Times which cited local media.
He threatened to take his own life when his wife initially said she was leaving him.
But when she refused to change her mind, he texted her to say that he was going to crash his plane with 200 people on board that night.
She immediately contacted police who alerted airport officials.
The pilot, from Padua, Italy, was suspended and is still undergoing psychiatric tests.