Currently, the latest error is displayed and other errors are not attended. Implement a stack to keep track of other errors that may arise.