chore: rm then
This commit is contained in:
parent
4991f7ff39
commit
dc9bcc40ee
@ -84,13 +84,13 @@ export async function killSidecars() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function openAppDir() {
|
export async function openAppDir() {
|
||||||
return invoke<void>("open_app_dir")
|
return invoke<void>("open_app_dir").catch((err) =>
|
||||||
.then((message) => console.log(message))
|
Notice.error(err?.message || err.toString(), 1500)
|
||||||
.catch((err) => Notice.error(err?.message || err.toString(), 1500));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function openLogsDir() {
|
export async function openLogsDir() {
|
||||||
return invoke<void>("open_logs_dir")
|
return invoke<void>("open_logs_dir").catch((err) =>
|
||||||
.then((message) => console.log(message))
|
Notice.error(err?.message || err.toString(), 1500)
|
||||||
.catch((err) => Notice.error(err?.message || err.toString(), 1500));
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user