Skip to content

Commit 42ebbca

Browse files
committed
Better error message when find doesn't locate texture
1 parent b20238d commit 42ebbca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pywavefront/texture.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def find(self, path=None):
7777
try:
7878
first = next(locations)
7979
except StopIteration:
80-
raise ValueError("Cannot locate texture in search path: {}".format(search_path))
80+
raise ValueError("Cannot locate texture `{}` in search path: {}".format(
81+
self._name, search_path))
8182

8283
return str(first)
8384

0 commit comments

Comments
 (0)