Skip to content

Catch and default#1

Merged
gadicc merged 1 commit intogadicc:cookiefrom
buzzcloudau:patch-1
May 18, 2017
Merged

Catch and default#1
gadicc merged 1 commit intogadicc:cookiefrom
buzzcloudau:patch-1

Conversation

@buzzcloudau
Copy link
Copy Markdown

  • Catch exception to prevent fatal error. ( Might not be required with updated dependencies )
  • Default the symbol for the url ( prevent it getting the cookie for 'undefined' )

- Catch exception to prevent fatal error. ( Might not be required with updated dependencies )
- Default the symbol for the url ( prevent it getting the cookie for 'undefined' )
@buzzcloudau
Copy link
Copy Markdown
Author

If you still wanted the fatal error, you could rethrow it. But I was hitting a promise error (no catch) and wasn't able to see the real error.

@gadicc gadicc merged commit aa4c1f0 into gadicc:cookie May 18, 2017
@gadicc
Copy link
Copy Markdown
Owner

gadicc commented May 18, 2017

So fast, yay! Thanks!

@gadicc
Copy link
Copy Markdown
Owner

gadicc commented May 18, 2017

Yeah we'll look at all the error handling more closely before final submission but yeah definitely for now it's better to print the error. Can't believe I left out the fetch(symbol), you can just look at how bad the English is in the throw to see how tired towards the end :)

@buzzcloudau buzzcloudau deleted the patch-1 branch May 24, 2017 00:14
@buzzcloudau buzzcloudau restored the patch-1 branch May 24, 2017 00:14
@buzzcloudau buzzcloudau deleted the patch-1 branch May 24, 2017 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants