Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 9271398

Browse files
committed
Schedule creation: fix error message on creation
Resolves #861
1 parent 29cdfba commit 9271398

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/app/tasks/task-schedule-create/task-schedule-create.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { BusyService } from '../../shared/services/busy.service';
1414
import { TaskSchedule } from '../model/task-schedule';
1515
import { Page } from '../../shared/model/page';
1616
import { EMPTY } from 'rxjs/index';
17+
import { AppError } from '../../shared/model/error.model';
1718

1819
/**
1920
* Component handling a creation of a task schedule.
@@ -189,7 +190,7 @@ export class TaskScheduleCreateComponent implements OnInit {
189190
this.cancel();
190191
},
191192
error => {
192-
this.notificationService.error(error);
193+
this.notificationService.error(AppError.is(error) ? error.getMessage() : error);
193194
}
194195
);
195196
this.busyService.addSubscription(busy);

0 commit comments

Comments
 (0)