Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle multiline errors that might happen with kurtosis clean #69

Merged
merged 2 commits into from Mar 1, 2023

Conversation

h4ck3rk3y
Copy link
Contributor

@h4ck3rk3y h4ck3rk3y commented Feb 27, 2023

Inspired from

if len(allResultErrStrs) > 0 {
allIndexedResultErrStrs := []string{}
for idx, resultErrStr := range allResultErrStrs {
indexedResultErrStr := fmt.Sprintf(">>>>>>>>>>>>>>>>> ERROR %v <<<<<<<<<<<<<<<<<\n%v", idx, resultErrStr)
allIndexedResultErrStrs = append(allIndexedResultErrStrs, indexedResultErrStr)
}
// NOTE: We don't use stacktrace here because the actual stacktraces we care about are the ones from the threads!
return fmt.Errorf("The following errors occurred when trying to dump information about enclave '%v':\n%v",

@cloudflare-pages
Copy link

cloudflare-pages bot commented Feb 27, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4106784
Status: ✅  Deploy successful!
Preview URL: https://458fb056.kurtosis-docs.pages.dev
Branch Preview URL: https://gyani-multiline-clena-errors.kurtosis-docs.pages.dev

View logs

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.

None yet

2 participants