Skip to content

Commit

Permalink
print command in case of bgpq3 error
Browse files Browse the repository at this point in the history
  • Loading branch information
pierky committed Oct 26, 2017
1 parent 098dc69 commit 8132e6b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pierky/arouteserver/irrdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def _get_data(self):
out = self._run_cmd(cmd)
except Exception as e:
raise IRRDBToolsError(
"Can't get list of authorized ASNs for {}: {}".format(
self.descr, str(e)
"Can't get list of authorized ASNs for {}: {} - "
"Command: {}".format(
self.descr, str(e), " ".join(cmd)
)
)

Expand Down Expand Up @@ -181,8 +182,9 @@ def _get_data(self):
out = self._run_cmd(cmd)
except Exception as e:
raise IRRDBToolsError(
"Can't get authorized prefix list for {} IPv{}: {}".format(
self.descr, self.ip_ver, str(e)
"Can't get authorized prefix list for {} IPv{}: {} - "
"Command: {}".format(
self.descr, self.ip_ver, str(e), " ".join(cmd)
)
)

Expand Down

0 comments on commit 8132e6b

Please sign in to comment.