Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Show the exception message if one exists#2684

Merged
jasonLaster merged 4 commits into
firefox-devtools:masterfrom
bomsy:pause-reason-message
Apr 21, 2017
Merged

Show the exception message if one exists#2684
jasonLaster merged 4 commits into
firefox-devtools:masterfrom
bomsy:pause-reason-message

Conversation

@bomsy

@bomsy bomsy commented Apr 19, 2017

Copy link
Copy Markdown
Contributor

Associated Issue: #2677

Summary of Changes

  • Add exceptions message

Screenshots

screen shot 2017-04-19 at 1 13 49 pm

return dom.div({ className: "message" }, message);
}

const exception = pauseInfo.getIn(["why"]).get("exception").toJS();

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.

I think you should be able to do pauseInfo.getIn(["why", "exception"]) here. I'm pretty sure I did the getIn().get() pattern above for message and I think I made a mistake.

@codecov

codecov Bot commented Apr 21, 2017

Copy link
Copy Markdown

Codecov Report

Merging #2684 into master will increase coverage by 0.49%.
The diff coverage is 92.3%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2684      +/-   ##
=========================================
+ Coverage   58.41%   58.9%   +0.49%     
=========================================
  Files          55      56       +1     
  Lines        2164    2190      +26     
  Branches      427     432       +5     
=========================================
+ Hits         1264    1290      +26     
  Misses        900     900
Impacted Files Coverage Δ
src/components/SecondaryPanes/WhyPaused.js 80.76% <92.3%> (ø)
src/utils/pause.js 40% <0%> (+33.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 237e379...e6cbed0. Read the comment docs.

@jasonLaster

Copy link
Copy Markdown
Contributor

Looks like we got a test failure, which can be run in the WTR

https://github.com/devtools-html/debugger.html/blob/master/src/test/integration/runner.js#L78-L84

@bomsy

bomsy commented Apr 21, 2017

Copy link
Copy Markdown
Contributor Author

hmmm ... tests seem to pass locally for me

@jasonLaster

jasonLaster commented Apr 21, 2017 via email

Copy link
Copy Markdown
Contributor

@jasonLaster jasonLaster force-pushed the pause-reason-message branch from 7103625 to e6cbed0 Compare April 21, 2017 20:54
@jasonLaster

Copy link
Copy Markdown
Contributor

Looks like we were catching an edge case where exceptions were strings!

  • updated the code
  • added another unit test

screen shot 2017-04-21 at 4 49 39 pm

@jasonLaster jasonLaster merged commit 5535774 into firefox-devtools:master Apr 21, 2017
@bomsy

bomsy commented Apr 21, 2017

Copy link
Copy Markdown
Contributor Author

ahaa!! thanks.

@bomsy bomsy deleted the pause-reason-message branch April 21, 2017 21:44
@bomsy bomsy restored the pause-reason-message branch April 21, 2017 21:44
@bomsy bomsy deleted the pause-reason-message branch April 21, 2017 21:46
DanUgelow pushed a commit to DanUgelow/debugger.html that referenced this pull request May 4, 2017
* Show the exception message if one exists

* add jest snapshot tests for WhyPaused

* do not convert to JS

* Handle error strings
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants