Skip to content

Consume buffer in multiline error#25

Open
WillCodeForCats wants to merge 1 commit into
cypht-org:masterfrom
WillCodeForCats:error-message-handling
Open

Consume buffer in multiline error#25
WillCodeForCats wants to merge 1 commit into
cypht-org:masterfrom
WillCodeForCats:error-message-handling

Conversation

@WillCodeForCats
Copy link
Copy Markdown

Multi-line error messages aren't consumed from the socket, and end up bleeding into whatever the next call happens to be.

Example: if I do a putScript() with a compile error and then call listScripts() after that, the first two "scripts" it returns are the error messages from the putScript().

My fix is to simply call readBlock() to consume the socket buffer.

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.

1 participant