diff options
author | Rob Austein <sra@hactrn.net> | 2007-11-06 21:55:47 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-11-06 21:55:47 +0000 |
commit | 88953a016162642a1798c261ba04c2dc7440599a (patch) | |
tree | 8fff29f197c46c75e1eb2fcf2dddfebb46a07c61 /scripts/rpki/up_down.py | |
parent | 3f68e5c928026598523b37770cc8c48b263e2b76 (diff) |
Checkpoint
svn path=/scripts/rpki/exceptions.py; revision=1249
Diffstat (limited to 'scripts/rpki/up_down.py')
-rw-r--r-- | scripts/rpki/up_down.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/rpki/up_down.py b/scripts/rpki/up_down.py index 7b4065cb..a507203c 100644 --- a/scripts/rpki/up_down.py +++ b/scripts/rpki/up_down.py @@ -415,9 +415,12 @@ class error_response_pdu(base_elt): def toXML(self): """Generate payload of "error_response" PDU.""" assert self.status in self.codes - elt = self.make_elt("status") - elt.text = str(self.status) - return [elt] + status_elt = self.make_elt("status") + status_elt.text = str(self.status) + description_elt = self.make_elt("description") + description_elt.text = str(self.description) + description_elt.set("xml:lang", "en") + return [status_elt, description_elt] def check_syntax(self): """Handle an error response. For the moment, just raise an |