Added more error output to diagonalisation routine that does 2 by 2 matrices