fix: handle edge cases during registration #452
Merged
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.
This pull request includes several updates to dependencies, submodules, and error handling in the project. The most important changes are the addition of a new dependency, updates to submodule commits, and improvements in error handling and function implementation.
Dependency updates:
eyre
version0.6.12
toCargo.toml
to enhance error reporting capabilities.Error handling improvements:
NotActiveOperator
to theRunnerError
enum insdk/src/runners/mod.rs
to handle cases where the operator is not active.impl BlueprintConfig for TangleConfig
insdk/src/runners/tangle.rs
to check if the operator is active and return the newNotActiveOperator
error if not.Function implementation improvements:
sdk_main_impl
function inmacros/blueprint-proc-macro/src/sdk_main.rs
to dynamically determine the return type of theinner_main
function based on the input function signature.With this new change, our error reporting is way cleaner, for example here is when the operator is not an active one:
Closes #408
Closes #451