mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 12:44:19 +01:00
[SDK] Add Transaction History (#288)
* tx history * fix * fix * pr review refactor * pr review refactor * fix * pr review refactor * exclude gosec G115 Integer Overflow Conversion * ignore some gosec errs * ignore some gosec errs * ignore createdat in test assertion * Fixes (#7) * Fixes * Fixes * Update golang (#8) * update gha golangci-lint version * update gha golangci-lint version * fix linting issues * fix linting issues * fix linting issues * add linter timeout --------- Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
This commit is contained in:
@@ -195,18 +195,18 @@ func runCommand(name string, arg ...string) (string, error) {
|
||||
wg.Wait()
|
||||
if err := cmd.Wait(); err != nil {
|
||||
if errMsg := errorb.String(); len(errMsg) > 0 {
|
||||
return "", fmt.Errorf(errMsg)
|
||||
return "", fmt.Errorf("failed cmd wait: %v", errMsg)
|
||||
}
|
||||
|
||||
if outMsg := output.String(); len(outMsg) > 0 {
|
||||
return "", fmt.Errorf(outMsg)
|
||||
return "", fmt.Errorf("failed reading output: %v", outMsg)
|
||||
}
|
||||
|
||||
return "", err
|
||||
}
|
||||
|
||||
if errMsg := errb.String(); len(errMsg) > 0 {
|
||||
return "", fmt.Errorf(errMsg)
|
||||
return "", fmt.Errorf("run cmd failed: %v", errMsg)
|
||||
}
|
||||
|
||||
return strings.Trim(output.String(), "\n"), nil
|
||||
|
||||
Reference in New Issue
Block a user