Skip to content
Snippets Groups Projects
Commit caa3f9c0 authored by Swen Vermeul's avatar Swen Vermeul
Browse files

if creation of dataSet fails, immediately return error

parent 498b8cf1
No related branches found
No related tags found
No related merge requests found
......@@ -220,9 +220,9 @@ class DataSetUploadHandler(IPythonHandler):
files = filenames,
)
except Exception as e:
print(e)
errors.append({
"create": 'Error while creating the dataset: {}'.format(e)
self.set_status(500)
self.write({
"reason": 'Error while creating the dataset: {}'.format(e)
})
# try to set the properties
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment