Fix more error message problems 59/36059/2
authorJozef Behran <jbehran@cisco.com>
Thu, 10 Mar 2016 16:17:41 +0000 (17:17 +0100)
committerJozef Behran <jbehran@cisco.com>
Thu, 10 Mar 2016 16:22:06 +0000 (17:22 +0100)
commit8be6271e0995bcd528a5c1be01bdb885eb4c10cf
treeee4f982cef0b4dae976e7a460a0f126ffb31c49c
parentb760b426641ff5af6f9259e6e21acd101e8f6e3d
Fix more error message problems

It turns out there is much more code duplication regarding
error message reporting. Fix that so the error message
strings appear in the code only once and are reused for
both, the exception and the log file. As a result the new
code is more readable and less confusing.

Change-Id: Ib72b7de11648b718e2db41ee1d576ad1993cbc10
Signed-off-by: Jozef Behran <jbehran@cisco.com>
tools/fastbgp/play.py