Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Bridge error log #1448

Merged
merged 8 commits into from
Jun 3, 2019
Merged

Bridge error log #1448

merged 8 commits into from
Jun 3, 2019

Conversation

lucksus
Copy link
Collaborator

@lucksus lucksus commented May 29, 2019

PR summary

Adds log outputs for errors happening in hdk::call, including bridge errors.

changelog

Please check one of the following, relating to the CHANGELOG-UNRELEASED.md

  • this is a code change that effects some consumer (e.g. zome developers) of holochain core so it is added to the CHANGELOG-UNRELEASED.md (linked above), with the format - summary of change [PR#1234](https://github.com/holochain/holochain-rust/pull/1234)
  • this is not a code change, or doesn't effect anyone outside holochain core development

assert_eq!(
result.unwrap(),
JsonString::from("{\"Err\":{\"Internal\":\"{\\\"kind\\\":{\\\"ErrorGeneric\\\":\\\"{\\\\\\\"code\\\\\\\":-32602,\\\\\\\"message\\\\\\\":\\\\\\\"Holochain Instance Error: Zome function \'non-existent-function\' not found in Zome \'greeter\'\\\\\\\"}\\\"},\\\"file\\\":\\\"core/src/nucleus/ribosome/runtime.rs\\\",\\\"line\\\":\\\"225\\\"}\"}}"
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So this test does not test the log output but I tested the log output by running this test with --nocapture and watching the output.
We are not doing log testing (yet?) and I did not add log tests (as in testing for the existence of specific log outputs) because it feels like overkill.

@zippy zippy merged commit e02cdae into develop Jun 3, 2019
@zippy zippy deleted the bridge-error-log branch October 4, 2019 18:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants