cmd-connect | SyntaxError: Unexpected token 'E', "Error pars"... is not valid JSON
Stack Trace
if (error || stderr) {
return reject(Please upgrade to the latest version of the sesh CLI);
}
const sessions = JSON.parse(stdout);
return resolve(sessions ?? []);
});
});
Reviewed
[X] Reviewed existing issues and made sure this bug has not already been submitted.
[X] I have read the documentation and understand how sesh works before submitting this bug
What to do
Ensure if sesh isn't found a valid error is thrown
Ensure if the json flag doesn't work, a valid flag is thrown (check before throwing)
What happened?
Raycast is throwing an unexpected error: https://www.raycast.com/extension-issues/joshmedeski/sesh/5114453872
Version
unknown
Relevant log output
Stack Trace
Reviewed
What to do