diff options
author | Aylur <[email protected]> | 2024-07-20 14:05:47 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-07-20 14:05:47 +0200 |
commit | 1c9377ec696c1f8269bf30a7af1e4a9566d55625 (patch) | |
tree | 2a9a7e445b8e999f3fdac326d2386459d26868da /gjs/src/file.ts | |
parent | a1f9272f4576fd3c366581464223e08a35ccf99f (diff) |
update eslint, ts-for-gir
Diffstat (limited to 'gjs/src/file.ts')
-rw-r--r-- | gjs/src/file.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gjs/src/file.ts b/gjs/src/file.ts index d15474b..8875833 100644 --- a/gjs/src/file.ts +++ b/gjs/src/file.ts @@ -9,7 +9,8 @@ export function readFileAsync(path: string): Promise<string> { Astal.read_file_async(path, (_, res) => { try { resolve(Astal.read_file_finish(res) || "") - } catch (error) { + } + catch (error) { reject(error) } }) @@ -25,7 +26,8 @@ export function writeFileAsync(path: string, content: string): Promise<void> { Astal.write_file_async(path, content, (_, res) => { try { resolve(Astal.write_file_finish(res)) - } catch (error) { + } + catch (error) { reject(error) } }) |