From 4f1c26aa2406cf8e915a8c7d811977176732ff35 Mon Sep 17 00:00:00 2001 From: Wang Xuerui Date: Wed, 21 Aug 2013 01:58:32 +0800 Subject: [PATCH] Make extra error info string Fixes #645 --- powerline/lib/inotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/lib/inotify.py b/powerline/lib/inotify.py index 320cd92c..0e8211eb 100644 --- a/powerline/lib/inotify.py +++ b/powerline/lib/inotify.py @@ -134,7 +134,7 @@ class INotify(object): extra = '' if eno == errno.ENOSPC: extra = 'You may need to increase the inotify limits on your system, via /proc/sys/inotify/max_user_*' - raise OSError(eno, self.os.strerror(eno) + extra) + raise OSError(eno, self.os.strerror(eno) + str(extra)) def __del__(self): # This method can be called during interpreter shutdown, which means we