Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Full body response on onError option for spf.navigate - #402

Merged
DavidCPhillips merged 1 commit into
youtube:masterfrom
tchiotludo:fix/full-response-error
May 20, 2016
Merged

Full body response on onError option for spf.navigate#402
DavidCPhillips merged 1 commit into
youtube:masterfrom
tchiotludo:fix/full-response-error

Conversation

@tchiotludo

Copy link
Copy Markdown
Contributor

For now, we just received on simple detail.err string for failed navigate on option onError, I've added a detail.xhr with the full XMLHttpRequest in order to have more detail and responseText for debuging or displaying

Comment thread src/client/nav/nav.js Outdated
* @private
*/
spf.nav.handleNavigateError_ = function(options, url, err) {
spf.nav.handleNavigateError_ = function(options, url, err, xhr) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Optional fields should be named opt_*

@nicksay nicksay added this to the SPF 24 (v2.4.0) milestone May 18, 2016
@DavidCPhillips

Copy link
Copy Markdown
Contributor

Whoops, this one slipped a bit.

The changes look good. Could you squash the commits into one? Then we'll go ahead and merge it in.

@tchiotludo

Copy link
Copy Markdown
Contributor Author

it's done.
Thanks

@DavidCPhillips

Copy link
Copy Markdown
Contributor

LGTM

@DavidCPhillips
DavidCPhillips merged commit 2b61bf2 into youtube:master May 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants