mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 00:31:31 +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)
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user