Skip to content

Commit

Permalink
Merge pull request #66 from anuraaga/fix-resposneerrlog
Browse files Browse the repository at this point in the history
  • Loading branch information
fzipi authored Sep 1, 2022
2 parents f5f64a1 + 3f473c8 commit 68d2825
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
# Dependency directories (remove the comment below to include it)
# vendor/
.vscode
.idea

build/
4 changes: 2 additions & 2 deletions runner/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ func RunStage(runContext *TestRunContext, ftwCheck *check.FTWCheck, testCase tes
err = runContext.Client.NewConnection(*dest)

if err != nil && !expectedOutput.ExpectError {
log.Fatal().Caller().Err(err).Msgf("can't connect to destination %+v - unexpected error found. Is your waf running?", dest)
log.Fatal().Caller().Err(err).Msgf("can't connect to destination %+v", dest)
}
runContext.Client.StartTrackingTime()

response, responseErr := runContext.Client.Do(*req)

runContext.Client.StopTrackingTime()
if responseErr != nil && !expectedOutput.ExpectError {
log.Fatal().Caller().Err(err).Msgf("can't connect to destination %+v - unexpected error found. Is your waf running?", dest)
log.Fatal().Caller().Err(responseErr).Msgf("failed sending request to destination %+v", dest)
}

if notRunningInCloudMode(ftwCheck) {
Expand Down

0 comments on commit 68d2825

Please sign in to comment.