ECM: A scheme for analysing user-system errors