mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2024-11-13 18:08:22 -05:00
Made the app not hang when a mod is not found
This commit is contained in:
parent
1af3292e8c
commit
3b229070a9
@ -30,7 +30,7 @@ export default class Mods {
|
||||
id = await source.search(mod);
|
||||
} catch (e) {
|
||||
if (e instanceof ModNotFoundError) {
|
||||
spinner.updateText(`Mod not found on ${source.getSourceName()}`)
|
||||
spinner.stop(`Mod not found on ${source.getSourceName()}`)
|
||||
} else {
|
||||
spinner.error(`An error occurred searching for ${mod} on ${source.getSourceName()}. Skipping ${source.getSourceName()}`)
|
||||
// Try the next source
|
||||
|
@ -19,8 +19,9 @@ export default class PrintUtils {
|
||||
this.spinner.start();
|
||||
}
|
||||
|
||||
public stop() {
|
||||
this.spinner.stop();
|
||||
public stop(print: string) {
|
||||
this.updateText(print);
|
||||
this.spinner.stopAndPersist();
|
||||
}
|
||||
|
||||
public error(print: string | Error) {
|
||||
|
Loading…
Reference in New Issue
Block a user