@vlandoss/localproxy 0.0.4 → 0.0.5-git-4100404.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main.ts +6 -2
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -45,7 +45,11 @@ export async function main(options: ProgramOptions) {
|
|
|
45
45
|
const program = await createProgram(options);
|
|
46
46
|
await program.parseAsync();
|
|
47
47
|
} catch (error) {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
if (error instanceof Error && error.name === "ExitPromptError") {
|
|
49
|
+
logger.success("👋 cancelled, until next time!");
|
|
50
|
+
} else {
|
|
51
|
+
logger.error(error);
|
|
52
|
+
process.exit(1);
|
|
53
|
+
}
|
|
50
54
|
}
|
|
51
55
|
}
|