Commit 317172f6 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[data] Make the error message on invalid dataformat more verbose

parent 86a6cbe9
......@@ -316,7 +316,11 @@ class CachedDataSource(DataSource):
self.dataformat = DataFormat(self.prefix, dataformat_name)
if not self.dataformat.valid:
raise RuntimeError("the dataformat `%s' is not valid" % dataformat_name)
raise RuntimeError(
"the dataformat `{}' is not valid\n{}".format(
dataformat_name, self.dataformat.errors
return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment