]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Return errors to subscriber of task-wrapper
authorStephan Müller <smueller@suse.com>
Tue, 7 Aug 2018 14:16:47 +0000 (16:16 +0200)
committerStephan Müller <smueller@suse.com>
Tue, 9 Oct 2018 12:55:14 +0000 (14:55 +0200)
Fixes: https://tracker.ceph.com/issues/36360
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.ts

index 5ac34a6324c938f5599349044c736321d144436c..f0ecb8b05612110152f84197fd46cba0c33b1c0a 100644 (file)
@@ -38,7 +38,7 @@ export class TaskWrapperService {
         (resp) => {
           task.success = false;
           task.exception = resp.error;
-          observer.error();
+          observer.error(resp);
         },
         () => {
           observer.complete();