##// END OF EJS Templates
context: fix creation of ProgrammingError to not use non-existent field...
Martin von Zweigbergk -
r45460:b2e5ec0c default
parent child Browse files
Show More
@@ -2322,7 +2322,7 b' class overlayworkingctx(committablectx):'
2322 return self._cache[path][b'flags']
2322 return self._cache[path][b'flags']
2323 else:
2323 else:
2324 raise error.ProgrammingError(
2324 raise error.ProgrammingError(
2325 b"No such file or directory: %s" % self._path
2325 b"No such file or directory: %s" % path
2326 )
2326 )
2327 else:
2327 else:
2328 return self._wrappedctx[path].flags()
2328 return self._wrappedctx[path].flags()
@@ -2439,7 +2439,7 b' class overlayworkingctx(committablectx):'
2439 return len(self._cache[path][b'data'])
2439 return len(self._cache[path][b'data'])
2440 else:
2440 else:
2441 raise error.ProgrammingError(
2441 raise error.ProgrammingError(
2442 b"No such file or directory: %s" % self._path
2442 b"No such file or directory: %s" % path
2443 )
2443 )
2444 return self._wrappedctx[path].size()
2444 return self._wrappedctx[path].size()
2445
2445
General Comments 0
You need to be logged in to leave comments. Login now