aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-04-21 11:01:26 +0200
committerHarald Welte <laforge@osmocom.org>2021-04-22 09:11:55 +0200
commit977035c429f4f4a1aa61e82129f6a1cffe1d6339 (patch)
treef5436b8add1ea0bffa5b391ead842339e2a7f1fe
parent8fe1d202c7b01460e594484b9edb6273ff2494fc (diff)
filsystem.py: Add more information to exceptionsHEADmaster
-rw-r--r--pySim/filesystem.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pySim/filesystem.py b/pySim/filesystem.py
index 2023495..1068930 100644
--- a/pySim/filesystem.py
+++ b/pySim/filesystem.py
@@ -209,13 +209,13 @@ class CardDF(CardFile):
if child.fid in self.children:
if ignore_existing:
return
- raise ValueError("File with given fid %s already exists" % (child.fid))
+ raise ValueError("File with given fid %s already exists in %s" % (child.fid, self))
if self.lookup_file_by_sfid(child.sfid):
- raise ValueError("File with given sfid %s already exists" % (child.sfid))
+ raise ValueError("File with given sfid %s already exists in %s" % (child.sfid, self))
if self.lookup_file_by_name(child.name):
if ignore_existing:
return
- raise ValueError("File with given name %s already exists" % (child.name))
+ raise ValueError("File with given name %s already exists in %s" % (child.name, self))
self.children[child.fid] = child
child.parent = self