-
Notifications
You must be signed in to change notification settings - Fork 0
Section parsing documentation update #69
Merged
+61
−0
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -336,3 +336,62 @@ Mike | |
| ] | ||
| } | ||
| ``` | ||
| ## Parse Error | ||
| An error caused by a malformed delimiter or nested delimiters. Parse errors only occur if a delimiter is incorrectly formatted or a delimiter is nested in a reply-from-user. | ||
| ### Fields | ||
| | Key | Value | | ||
| | - | - | | ||
| |`type`|`parse_error`| | ||
| | `datetime` | RFC 8061 formatted datetime string. | | ||
| | `file_path` | Full path of the item with the error. | | ||
| | `expected` | Description of what the parser was expecting. | | ||
| | `got` | Line that cause the parse error. | | ||
| | `line_num` | The line number in the item that caused the parse error. | | ||
|
|
||
| ### Plain Text Example | ||
| ``` | ||
| (item aae2 in qsnapshot) | ||
| === Additional information supplied by user === | ||
| Subject: RE: Help with hardware upgrades | ||
| From: "Ezra, Kristopher L" <kris@purdue.edu> | ||
| Date: Wed, 5 Feb 2020 18:11:58 +0000 | ||
| If it makes no difference between windows and linux for the fileserver I'd | ||
| rather service a linux machine. | ||
| Considering the switches, i could do 2 8s and 2 16s. Two of the switches | ||
| I'm replacing already service 9 connections and I'd rather not daisy chain. | ||
| Is there something driving the price here? I see gigabit switches from | ||
| tplink on amazon right now for $50. I dont need managed switches or | ||
| anything fancy. | ||
| Kris | ||
| *** Replied by: emuffley at: 02/05/20 13:22:02 *** | ||
| Kris, | ||
| Thank you on the server operating question. We will kick that off to our linux folks for discussion. | ||
| No daisy chain, agreed. These switches are unmanaged. | ||
| For the workstations, are you wanting Windows, Linux or a mix? | ||
| Eric Muffley | ||
| Systems Engineer, Engineering Computer Network | ||
| =============================================== | ||
| ``` | ||
| ### Parsed Example | ||
| ```jsonc | ||
| { | ||
| "type": "parse_error", | ||
| "datetime": "2020-10-16T10:44:45", | ||
| "file_path": "/home/pier/e/benne238/webqueue2/q-snapshot/aae/2", | ||
| "expected": "Did not encounter a reply-from-user ending delimiter", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change |
||
| "got": "Kris", | ||
| "line_num": 468 | ||
| } | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.