We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug If the environment root directory is not found, no error is thrown it exits out without a message
To Reproduce Steps to reproduce the behavior:
rootDirectory
opspark/controller/projects.js
Line 17 in e851311
fs.readdirSync(
)
Line 26 in e851311
Expected behavior Expected an error to be printed to the console or terminal
Desktop (please complete the following information):
Additional context Can be resolved with a try and catch. Wrapping the githubDir variable in a try and an error in a catch.
else if (codenvyUser) { rootDirectory = codenvyUser; try { githubDir = fs.readdirSync(`${rootDirectory}/`) .filter(dir => /[\w]+\.github\.io/.test(dir))[0]; } catch (err) { console.log(err); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
If the environment root directory is not found, no error is thrown it exits out without a message
To Reproduce
Steps to reproduce the behavior:
rootDirectory
variable to a root path that does not exist.opspark/controller/projects.js
Line 17 in e851311
fs.readdirSync(
${rootDirectory}/)
resolves to undefined, code does not break or error thrown.opspark/controller/projects.js
Line 26 in e851311
Expected behavior
Expected an error to be printed to the console or terminal
Desktop (please complete the following information):
Additional context
Can be resolved with a try and catch. Wrapping the githubDir variable in a try and an error in a catch.
The text was updated successfully, but these errors were encountered: