Parcourir la source

show actual error (ie the exception text) for a DataNotFoundError, instead of just 'not found'

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac384@4125 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen il y a 14 ans
Parent
commit
e8edbcf573
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/bin/bindctl/bindcmd.py

+ 1 - 1
src/bin/bindctl/bindcmd.py

@@ -623,7 +623,7 @@ class BindCmdInterpreter(Cmd):
         except isc.cc.data.DataTypeError as dte:
             print("Error: " + str(dte))
         except isc.cc.data.DataNotFoundError as dnfe:
-            print("Error: " + identifier + " not found")
+            print("Error: " + str(dnfe))
         except KeyError as ke:
             print("Error: missing " + str(ke))
             raise ke