capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

feat: improving message when capacitor is already configured

Open SimonSiefke opened this issue 2 years ago • 1 comments

Feature Request

Description

When npx cap init is run twice by accident, an error is displayed. I believe it might be possible to make the message less technical and easier to understand.

Current behaviour

npx cap init
// ...
npx cap init
[error] Cannot run init for a project using a non-JSON configuration file.
        Delete capacitor.config.ts and try again.

Preferred Solution

npx cap init
// ...
npx cap init
Capacitor is already configured using capacitor.config.ts // less strict message

SimonSiefke avatar Aug 02 '23 09:08 SimonSiefke

Feature Request

Description

When npx cap init is run twice by accident, an error is displayed. I believe it might be possible to make the message less technical and easier to understand.

Current behaviour

npx cap init
// ...
npx cap init
[error] Cannot run init for a project using a non-JSON configuration file.
        Delete capacitor.config.ts and try again.

Preferred Solution

npx cap init
// ...
npx cap init
Capacitor is already configured using capacitor.config.ts // less strict message

I was concerned about this error message, but this comment was completely usefull. This current behaviour might get confused to new developers, like me. Thank you.

MajesticDM avatar Nov 19 '23 02:11 MajesticDM