unyt-org / uix

The UIX Framework
https://uix.unyt.org
MIT License
54 stars 3 forks source link

[Uncaught Promise] `uix --init`: Failed to clone #145

Closed asbng closed 2 months ago

asbng commented 3 months ago

🕗 Version & Regression Information

UIX v0.2.6

💻 Code

uix --init

🙁 Actual behavior

When git fails to clone the base repository, the following error is thrown:

Uncaught promise: Promise {
  <rejected> Error: Failed to clone.
    at initBaseProject (https://cdn.unyt.org/uix/src/utils/init-base-project.ts:35:10)
    at eventLoopTick (ext:core/01_core.js:169:7)
    at async https://cdn.unyt.org/uix/run.ts:39:7
}
error: Uncaught (in promise) Error: Failed to clone.
      throw new Error("Failed to clone.");
            ^
    at initBaseProject (https://cdn.unyt.org/uix/src/utils/init-base-project.ts:35:10)
    at eventLoopTick (ext:core/01_core.js:169:7)
    at async https://cdn.unyt.org/uix/run.ts:39:7

🙂 Expected behavior

Error handling according to #144

Additional information about the issue

No response