From: Stephan Müller Date: Tue, 7 Aug 2018 14:16:47 +0000 (+0200) Subject: mgr/dashboard: Return errors to subscriber of task-wrapper X-Git-Tag: v14.0.1~96^2~9 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=769abcb3998ce638153ecd0333f1c71336cb491e;p=ceph-ci.git mgr/dashboard: Return errors to subscriber of task-wrapper Fixes: https://tracker.ceph.com/issues/36360 Signed-off-by: Stephan Müller --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.ts index 5ac34a6324c..f0ecb8b0561 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.ts @@ -38,7 +38,7 @@ export class TaskWrapperService { (resp) => { task.success = false; task.exception = resp.error; - observer.error(); + observer.error(resp); }, () => { observer.complete();