This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
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.
Debug xml dsig #4
Debug xml dsig #4
Changes from 10 commits
cff904c
8ab9731
346f6cb
9c557ad
64b0562
7766955
d8159e5
905cac0
6a1ddc7
063300a
11eae9c
dfc8f7f
da21a2b
0e268ee
eb0bccf
50f3b38
5c03cf0
3c84dd8
d2bfe97
8cde6f3
d267a80
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Some docstring or comments explaining the magic xPaths would be nice 😄
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.
Agreed, but i would have to figure out what that code does first... (It's not mine)
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.
If there's a left in the referenceChecks should we possibly
sequence
it to collect the error out? Or is it more descriptive to print everything out like this?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.
It's a list of
Either
s, and I want to keep track of how many errors there are, and which precisely.I agree it looks weird, but I can't think of a better way to do it. Wanna try something and add a commit?
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.
In that case; how about
show (signedInfoReference signedInfoTyped, lefts referenceChecks)
instead?lefts
will just grab all the errors from the list of EithersThere 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.
If any noise on stdout indicates an error; it's probably helpful to have the output of stderr appended here too.
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.
i think that's what this does, no?
(thanks for the other comments, more changes coming up!)
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.
Ahh; I see! I misunderstood; It looked at a glance that the tuple matched up with
[stdout, stderr]
; but in hindsight that does't make sense 👍