source file: p10/commands/error.py
file stats: 6 lines, 6 executed: 100.0% covered
1. #!/usr/bin/env python
2.
3. import genericcommand
4. import p10.connection
5.
6. class error(genericcommand.genericcommand):
7. """ Parses errors sent on-link """
8.
9. def handle(self, origin, line):
10. raise p10.connection.ConnectionError("Error received from upstream server: " + line[-1])