Skip to content

Commit 42af986

Browse files
committed
fix: add catch for promise
1 parent 4b86dd9 commit 42af986

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export function activate(state) {
1313

1414
package_deps().then(() => {
1515
setupTypeScript()
16-
});
16+
}).catch((e) => {
17+
atom.notifications.addError("atom-ide-javascript failed in installing its dependencies.")
18+
})
1719
}
1820

1921
/**

0 commit comments

Comments
 (0)