<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/23841">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">filsystem.py: Add more information to exceptions<br><br>Change-Id: Ia9449ddfaaf5f49e0a65aeeea9435141fd55fe65<br>---<br>M pySim/filesystem.py<br>1 file changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/41/23841/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/filesystem.py b/pySim/filesystem.py</span><br><span>index 36588e2..c340708 100644</span><br><span>--- a/pySim/filesystem.py</span><br><span>+++ b/pySim/filesystem.py</span><br><span>@@ -209,13 +209,13 @@</span><br><span>         if child.fid in self.children:</span><br><span>             if ignore_existing:</span><br><span>                 return</span><br><span style="color: hsl(0, 100%, 40%);">-            raise ValueError("File with given fid %s already exists" % (child.fid))</span><br><span style="color: hsl(120, 100%, 40%);">+            raise ValueError("File with given fid %s already exists in %s" % (child.fid, self))</span><br><span>         if self.lookup_file_by_sfid(child.sfid):</span><br><span style="color: hsl(0, 100%, 40%);">-            raise ValueError("File with given sfid %s already exists" % (child.sfid))</span><br><span style="color: hsl(120, 100%, 40%);">+            raise ValueError("File with given sfid %s already exists in %s" % (child.sfid, self))</span><br><span>         if self.lookup_file_by_name(child.name):</span><br><span>             if ignore_existing:</span><br><span>                 return</span><br><span style="color: hsl(0, 100%, 40%);">-            raise ValueError("File with given name %s already exists" % (child.name))</span><br><span style="color: hsl(120, 100%, 40%);">+            raise ValueError("File with given name %s already exists in %s" % (child.name, self))</span><br><span>         self.children[child.fid] = child</span><br><span>         child.parent = self</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/23841">change 23841</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/23841"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia9449ddfaaf5f49e0a65aeeea9435141fd55fe65 </div>
<div style="display:none"> Gerrit-Change-Number: 23841 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>