Fixed test

This commit is contained in:
Giuseppe Digilio
2019-03-18 11:38:38 +01:00
parent 2473ef3077
commit 825464bb9c
2 changed files with 3 additions and 2 deletions

View File

@@ -201,9 +201,9 @@ export class FormSectionComponent extends SectionModelComponent {
sectionData,
this.submissionService.getSubmissionScope());
} catch (e) {
const msg = this.translate.instant('error.submission.sections.init-form-error');
const msg: string = this.translate.instant('error.submission.sections.init-form-error') + e.toString();
const sectionError: SubmissionSectionError = {
message: msg + e.toString(),
message: msg,
path: '/sections/' + this.sectionData.id
};
this.sectionService.setSectionError(this.submissionId, this.sectionData.id, sectionError);