Skip to content

Get innerException message Recursively#630

Merged
shargon merged 10 commits intoneo-project:masterfrom
cloud8little:get_expmsg_recur
Jul 24, 2020
Merged

Get innerException message Recursively#630
shargon merged 10 commits intoneo-project:masterfrom
cloud8little:get_expmsg_recur

Conversation

@cloud8little
Copy link
Copy Markdown
Contributor

fix #629

if (exception.InnerException != null)
{
return exception.InnerException.Message;
return GetExceptionMessage(exception.InnerException);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Require both changes? or it's enough with the other?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It returns "Exceptions has been thrown by the target of an invocation" if calling current GetExceptionMessage, because Deploy (catch) -> MakeTransaction (throw) -> ApplicationEngine.Run (throw) -> createContract (throw)
b3d93acdeb6f2e17360978c1f3bca78

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can move GetExceptionMessage to ConsoleServiceBase and change

Console.WriteLine($"error: {ex.InnerException.Message}");

shargon
shargon previously approved these changes Jul 21, 2020
@cloud8little cloud8little requested a review from Tommo-L July 21, 2020 07: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.

Deploy an existed contract only return "engine faulted"

3 participants