Skip to content

Commit

Permalink
Fix: better logging for when protocol isn't found on
Browse files Browse the repository at this point in the history
  • Loading branch information
fjcaetano committed Jan 29, 2018
1 parent 5f1624b commit 3685f7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ReCaptcha/Classes/ReCaptcha.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,11 @@ private extension ReCaptcha.Config {
return url
}

#if DEBUG
print("⚠️ WARNING! Protocol not found for ReCaptcha domain (\(url))! You should add http:// or https:// to it!")
#endif

if let fixedURL = URL(string: "http://" + url.absoluteString) {
debugPrint("[ReCaptcha] - Prepending 'http://' to url (\(url))")
return fixedURL
}

Expand Down

0 comments on commit 3685f7d

Please sign in to comment.