Skip to content

Check if texput.log exists (fix #21) #29

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

Merged
merged 2 commits into from
Dec 11, 2019

Conversation

quantumsheep
Copy link
Contributor

Fix #21 by checking if texput.log exists before opening it as a read stream.

@saadq
Copy link
Owner

saadq commented Nov 21, 2019

Thanks for the PR @quantumsheep ! I'll verify this change this weekend and have it merged. I'll then publish a new version with your fix :)

@quantumsheep
Copy link
Contributor Author

Hello! Waiting for the PR to be merged 😄

@saadq
Copy link
Owner

saadq commented Dec 9, 2019

So sorry for my delay :(

I need to stop making promises on dates and then not meeting them... with that said I will definitely get to this tomorrow, I've added some alarms/reminders to make sure I do lol. Thanks for your patience @quantumsheep

@quantumsheep
Copy link
Contributor Author

Don't worry, it's not that much of an urge and you don't owe me anything! Take your time, delays doesn't matter :)

index.js Outdated
}
fs.stat(errorLogPath, (err, stats) => {
if (err || !stats.isFile()) {
outputStream.emit('error', new Error('LaTeX Syntax Error'))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can you change error message to be something more along the lines of the error log file not existing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like using err variable?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, i meant instead of LateX Syntax Error it should be a different message like No error log file or something

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you go! No error log file was perfect.

Copy link
Owner

@saadq saadq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! If you could just change the error message a bit, should be ready for merging/publishing asap.

@saadq saadq merged commit 66fbb3c into saadq:master Dec 11, 2019
@saadq
Copy link
Owner

saadq commented Dec 11, 2019

Thanks very much for the fix @quantumsheep! I will publish a new version once I get home :)

@quantumsheep
Copy link
Contributor Author

Thanks you :)

@quantumsheep quantumsheep deleted the fix-log-read-error branch December 12, 2019 14:55
@saadq
Copy link
Owner

saadq commented Dec 13, 2019

v2.6.3 is out now. Thanks again @quantumsheep

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

Successfully merging this pull request may close these issues.

Error: ENOENT: no such file or directory
2 participants