File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,10 @@ func main() {
1414
1515 path := os .Args [1 ]
1616
17- acctest .CompressCassette (path )
17+ report , err := acctest .CompressCassette (path )
18+ if err != nil {
19+ panic (err )
20+ }
21+
22+ report .Print ()
1823}
Original file line number Diff line number Diff line change @@ -96,6 +96,15 @@ func (report *CompressReport) AddErrorLog(log string) {
9696 report .ErrorLogs = append (report .ErrorLogs , log )
9797}
9898
99+ func (report * CompressReport ) Print () {
100+ log .Printf ("On cassette: %s\n " , report .Path )
101+ log .Printf ("%d skipped interactions\n " , report .SkippedInteraction )
102+
103+ for _ , msg := range report .ErrorLogs {
104+ log .Println (msg )
105+ }
106+ }
107+
99108func CompressCassette (path string ) (CompressReport , error ) {
100109 inputCassette , err := cassette .Load (path )
101110 if err != nil {
You can’t perform that action at this time.
0 commit comments