Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feature: add some specific exit error-codes for daemon startup #2352

Closed
Assignees
Labels
topic: CLIRelated to the command line interface type: enhancementProposed improvement
@cmaglie

Description

Describe the request

From @kittaakos comment

Besides the application-level error handling for the services, I would like to get a proper exit code and a terminating daemon process when something went wrong. Now, IDE2 must sniff into the stderr of the process, parse such messages and kill the daemon process because it's not terminating, although the daemon is nonfunctional:

  • To determine a Failed to listen on TCP port. Address already in use. error message:
    failed to listen, address already in use, bind, only one usage of each socket address

  • For invalid address: Failed to listen on TCP port. Unknown address.:
    is unknown name or tcp/ and is an invalid port

  • To provide the Failed to listen on TCP port. Invalid port. to the user:
    is an invalid port and failed to serve

Describe the current behavior

Arduino CLI daemon will fail with no specific exit code.

Arduino CLI version

nightly

Operating system

N/A

Operating system version

N/A

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

Labels

topic: CLIRelated to the command line interface type: enhancementProposed improvement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    AltStyle によって変換されたページ (->オリジナル) /