mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 14:07:01 +09:00
fix error state
This commit is contained in:
parent
5e3e49ecab
commit
05f9b8b304
1 changed files with 3 additions and 3 deletions
|
@ -247,15 +247,15 @@ class Api {
|
|||
|
||||
moveNetworkConfig (win, src) {
|
||||
if (path.extname(src) != 'yml') {
|
||||
return { err: 'Invalid file' };
|
||||
return { error: 'Invalid file' };
|
||||
};
|
||||
|
||||
const dst = path.join(Util.defaultUserDataPath(), 'config.yaml');
|
||||
try {
|
||||
fs.copyFileSync(src, dst);
|
||||
return { path: dst };
|
||||
} catch (err) {
|
||||
return { err };
|
||||
} catch (e) {
|
||||
return { error: e.message };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue