diff --git a/attack.go b/attack.go index 6933022..de05c25 100644 --- a/attack.go +++ b/attack.go @@ -24,7 +24,7 @@ const ( // Attack attacks the given targets and returns the accessed streams. func (s *Scanner) Attack(targets []Stream) ([]Stream, error) { if len(targets) == 0 { - return nil, fmt.Errorf("unable to attack empty list of targets") + return nil, fmt.Errorf("no stream found") } // Most cameras will be accessed successfully with these two attacks. diff --git a/attack_test.go b/attack_test.go index afa665b..008fe43 100644 --- a/attack_test.go +++ b/attack_test.go @@ -89,7 +89,7 @@ func TestAttack(t *testing.T) { targets: nil, expectedStreams: nil, - expectedErr: errors.New("unable to attack empty list of targets"), + expectedErr: errors.New("no stream found"), }, }