Make error logs more explicit

This commit is contained in:
Kristóf Tóth 2018-04-06 16:09:05 +02:00
parent 64bd2f1ba0
commit 0464acbdc4

View File

@ -154,8 +154,8 @@ class SourceCodeEventHandler(TriggerlessEventHandler):
self.read(data) self.read(data)
except IndexError: except IndexError:
data['content'] = 'No files in this directory :(' data['content'] = 'No files in this directory :('
except EnvironmentError: except EnvironmentError as err:
LOG.error('Failed to select directory "%s"', data['directory']) LOG.error('Failed to select directory "%s". Reason: %s', data['directory'], str(err))
return data return data
def exclude(self, data): def exclude(self, data):