Skip to content

Conversation

chihuahua
Copy link
Member

@chihuahua chihuahua commented Sep 4, 2017

Previously, when an error occurred while the projector was processing data (creating data sets and vectors, normalizing data points, computing PCA, etc), it would be logged to the console.

screen shot 2017-09-04 at 12 42 26 am

This change uses a try ... catch block to make those exceptions appear as errors in the modal.

c9vwa6xnw6k

This change unfortunately hurts performance a bit because Chrome's V8 engine bypasses an optimized path for JS within a try ... catch block. However, so many people have taken issue with the lack of clarity surrounding projector bugs that I deem this change worth it.

Previously, when an error occurred while the projector was processing data (creating data sets and vectors, normalizing data points, computing PCA, etc), it would be logged to the console.

This change uses a try ... catch block to make those exceptions appear as errors in the modal. This unfortunately hurts performance a bit because Chrome's V8 engine bypasses an optimized path for JS within a try ... catch block. However, so many people have taken issue with the lack of clarity surrounding projector bugs that I deem this change worth it.
The 'Error:' prefix is already in the error message.
@chihuahua chihuahua requested a review from nsthorat September 7, 2017 04:08
@chihuahua chihuahua merged commit 11b0d09 into master Sep 7, 2017
@chihuahua chihuahua deleted the chihuahua-log-errors-in-modal branch September 7, 2017 22:16
jart pushed a commit to jart/tensorboard that referenced this pull request Sep 23, 2017
Previously, when an error occurred while the projector was processing data (creating data sets and vectors, normalizing data points, computing PCA, etc), it would be logged to the console.

This change uses a try ... catch block to make those exceptions appear as errors in the modal. This unfortunately hurts performance a bit because Chrome's V8 engine bypasses an optimized path for JS within a try ... catch block. However, so many people have taken issue with the lack of clarity surrounding projector bugs that I deem this change worth it.
jart pushed a commit that referenced this pull request Sep 26, 2017
Previously, when an error occurred while the projector was processing data (creating data sets and vectors, normalizing data points, computing PCA, etc), it would be logged to the console.

This change uses a try ... catch block to make those exceptions appear as errors in the modal. This unfortunately hurts performance a bit because Chrome's V8 engine bypasses an optimized path for JS within a try ... catch block. However, so many people have taken issue with the lack of clarity surrounding projector bugs that I deem this change worth it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants