Unverified Commit 7846d812 authored by Igor Gov's avatar Igor Gov Committed by GitHub
Browse files

Fix: minor error handling bug (#737)

Co-authored-by: default avatarIgor Gov <igor.govorov1@gmail.com>
parent 0f6c5698
No related merge requests found
Showing with 3 additions and 2 deletions
+3 -2
......@@ -6,11 +6,12 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/google/martian/har"
"io/ioutil"
"net/http"
"sync"
"time"
"github.com/google/martian/har"
)
type Protocol struct {
......@@ -282,7 +283,7 @@ func (h HTTPPayload) MarshalJSON() ([]byte, error) {
RawResponse: &HTTPResponseWrapper{Response: h.Data.(*http.Response)},
})
default:
panic(fmt.Sprintf("HTTP payload cannot be marshaled: %s", h.Type))
panic(fmt.Sprintf("HTTP payload cannot be marshaled: %v", h.Type))
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment