-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
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 :) |
Hello! Waiting for the PR to be merged 😄 |
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 |
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')) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like using err
variable?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Thanks very much for the fix @quantumsheep! I will publish a new version once I get home :) |
Thanks you :) |
|
Fix #21 by checking if
texput.log
exists before opening it as a read stream.