Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chip list sometimes fails with an error #2

Open
raviramphe opened this issue Jun 24, 2020 · 0 comments
Open

Chip list sometimes fails with an error #2

raviramphe opened this issue Jun 24, 2020 · 0 comments

Comments

@raviramphe
Copy link

raviramphe commented Jun 24, 2020

Running chip list will sometimes produce the following error. Note that this is quite a rare occurrence and restarting one's machine resolves the issue.

(base) ➜  leadman git:(master) chip list
{
  err: Error: spawn bash ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
      at onErrorNT (internal/child_process.js:467:16)
      at processTicksAndRejections (internal/process/task_queues.js:84:21) {
    errno: -2,
    code: 'ENOENT',
    syscall: 'spawn bash',
    path: 'bash',
    spawnargs: [ '-c', 'git branch' ]
  },
  output: ''
}

In order to print out the full error as above, this function needs to be rewritten as follows:

export const printError = (e: any) => {
  console.log(e);
};

If it is not rewritten, the error is hidden by this surface error:

Uncaught TypeError: Cannot read property 'trim' of undefined
@Hopding Hopding changed the title Chip list is throwing this error Chip list sometimes fails with an error Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant