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)
except IndexError:
data['content'] = 'No files in this directory :('
except EnvironmentError:
LOG.error('Failed to select directory "%s"', data['directory'])
except EnvironmentError as err:
LOG.error('Failed to select directory "%s". Reason: %s', data['directory'], str(err))
return data
def exclude(self, data):