Skip to content

Commit

Permalink
add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
corny committed Mar 12, 2022
1 parent 358397a commit 97303eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions decipher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"context"
"errors"
"fmt"
"log"
"net/url"
"regexp"
"strconv"
Expand Down Expand Up @@ -111,6 +112,7 @@ func evalJavascript(jsFunction, arg string) (string, error) {
func (config playerConfig) getNFunction() (string, error) {
nameResult := nFunctionNameRegexp.FindSubmatch(config)
if len(nameResult) == 0 {
log.Println("playerConfig:", string(config))
return "", errors.New("unable to extract n-function name")
}

Expand Down

0 comments on commit 97303eb

Please sign in to comment.