mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 19:01:33 +00:00
Make error logs more explicit
This commit is contained in:
parent
64bd2f1ba0
commit
0464acbdc4
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user