return error to frontend if submit failed
Merge branch 'release-0.4.0' into develop