Skip to content

Commit 5df9fad

Browse files
chore (downloader): error handling
1 parent aa3f76e commit 5df9fad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

public/assets/pages/viewerpage/application_downloader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import rxjs, { effect } from "../../lib/rx.js";
33
import { qs } from "../../lib/dom.js";
44
import { loadCSS } from "../../helpers/loader.js";
55
import t from "../../locales/index.js";
6+
import ctrlError from "../ctrl_error.js";
67

78
import { transition, getFilename, getDownloadUrl } from "./common.js";
89

@@ -41,7 +42,9 @@ export default async function(render, { acl$ }) {
4142
})),
4243
rxjs.tap(() => setLoading(false)),
4344
));
44-
effect(acl$);
45+
effect(acl$.pipe(
46+
rxjs.catchError(ctrlError()),
47+
));
4548
}
4649

4750
export function init() {

0 commit comments

Comments
 (0)