Skip to content

Return method errors in RPC layer - #334

Merged
rolandshoemaker merged 6 commits into
masterfrom
rpc-errors
Jun 10, 2015
Merged

rolandshoemaker merged 6 commits into
masterfrom
rpc-errors

Conversation

@rolandshoemaker

Copy link
Copy Markdown
Contributor

Fixes #316. @jcjones: With this audit messages can get doubled up (from the RPC layer and from the calling logic), probably I should remove the error condition logging from the rpc-wrappers methods and leave the audit logging to happen in the already existing calling logic.

@jcjones

jcjones commented Jun 9, 2015

Copy link
Copy Markdown
Contributor

I agree with the plan to /not/ audit log in rpc-wrappers but rather do so upstream.

I'll go through this in a little bit. I'm excited to merge it.

Comment thread rpc/amqp-rpc.go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we do a default here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nevermind, if Type == "" then we still have the string value in rpcError.Value

@jcjones

jcjones commented Jun 9, 2015

Copy link
Copy Markdown
Contributor

I have a feeling this is going to break something, but I'd much rather fix whatever's wrong when errors propagate!

I'm good with merging when the above are handled -- which I can do later if you don't have time.

Thanks!

rolandshoemaker added a commit that referenced this pull request Jun 10, 2015
Return method errors in RPC layer
@rolandshoemaker
rolandshoemaker merged commit fa6defd into master Jun 10, 2015
@jcjones
jcjones deleted the rpc-errors branch June 10, 2015 04:08
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.

2 participants