Skip to content

Handle the failure cases of the profiler-cli daemon creation and communication gracefully #6230

Description

@canova

Currently when the cli runs on a sandboxed environment that it doesn't have access to unix sockets or the PROFILER_CLI_SESSION_DIR directory, we show an error like this without much info:

Error: Daemon process exited unexpectedly during startup (exit code 0). Run with PROFILER_CLI_SESSION_DIR set and check the session directory for a log file, or re-run after upgrading Node.js.

Let's improve these failure cases properly and show more useful errors to the user.

┆Issue is synchronized with this Jira Task

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cliIssues related to the profiler CLI

Type

Fields

Priority

P2

Severity

S3

Jira

None yet

Estimate

None yet

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions