aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2014-12-02 17:59:54 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2014-12-02 17:59:54 +0000
commitcaa40a6da5bfc30006f546becde9e554a153821c (patch)
tree7fb6a2cbc99904769689d4d465aa25cdcd0f9c55 /db
parentb09ed283a7aa3d3f6d0fbbb9d1a9242c72e4c8d1 (diff)
Minor tweak to error message
Change-Id: I9b137cbf592c20fd47fb5dce1d7fad5731ccea17
Diffstat (limited to 'db')
-rw-r--r--db/db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/db.py b/db/db.py
index 5312ed3..72f6e4d 100644
--- a/db/db.py
+++ b/db/db.py
@@ -147,7 +147,7 @@ class VlanDB:
def delete_switch(self, switch_id):
switch = self.get_switch(switch_id)
if switch is None:
- raise InputError("Cannot delete switch ID %s which does not exist" % switch_id)
+ raise InputError("Switch ID %s does not exist" % switch_id)
ports = self.get_ports_by_switch(switch_id)
if ports is not None:
raise InputError("Cannot delete switch ID %s when it still has %d ports" %