diff --git a/src/mods/mods.ts b/src/mods/mods.ts index 4653922..9bb24e0 100644 --- a/src/mods/mods.ts +++ b/src/mods/mods.ts @@ -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 diff --git a/src/util/print_utils.ts b/src/util/print_utils.ts index cabc4e5..80982c0 100644 --- a/src/util/print_utils.ts +++ b/src/util/print_utils.ts @@ -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) {