##// END OF EJS Templates
fsmonitor: properly handle str ex.msg...
Gregory Szorc -
r44531:806d14ef default
parent child Browse files
Show More
@@ -105,11 +105,11 b' class client(object):'
105 )
105 )
106 return self._watchmanclient.query(*watchmanargs)
106 return self._watchmanclient.query(*watchmanargs)
107 except pywatchman.CommandError as ex:
107 except pywatchman.CommandError as ex:
108 if b'unable to resolve root' in ex.msg:
108 if 'unable to resolve root' in ex.msg:
109 raise WatchmanNoRoot(
109 raise WatchmanNoRoot(
110 self._root, stringutil.forcebytestr(ex.msg)
110 self._root, stringutil.forcebytestr(ex.msg)
111 )
111 )
112 raise Unavailable(ex.msg)
112 raise Unavailable(stringutil.forcebytestr(ex.msg))
113 except pywatchman.WatchmanError as ex:
113 except pywatchman.WatchmanError as ex:
114 raise Unavailable(stringutil.forcebytestr(ex))
114 raise Unavailable(stringutil.forcebytestr(ex))
115
115
General Comments 0
You need to be logged in to leave comments. Login now