Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Code: Don't throw from interim callback state #837

Merged
merged 1 commit into from
Apr 6, 2015
Merged

Conversation

am11
Copy link
Contributor

@am11 am11 commented Apr 6, 2015

Lets the error propagate to libsass.

This goes against the concept of fast aborting,
but this way downstream user will not get a blunt
exception, but receive a well-formatted JSON
error.

Note: this exception from importer callback's
post-process handler cannot be captured by try-
catch.

The edit in binding.cpp is also required, because
those conditions will never get satisfied anyway.
Removed due to aforementioned reasons.

Lets the error propagate to libsass.

This goes against the concept of fast aborting,
but this way downstream user will not get a blunt
exception, but receive a well-formatted JSON
error.

Note: this exception from importer callback's
post-process handler cannot be captured by try-
catch.

The edit in binding.cpp is also required, because
those conditions will never get satisfied anyway.
Removed due to aforementioned reasons.
am11 added a commit that referenced this pull request Apr 6, 2015
Code: Don't throw from interim callback state
@am11 am11 merged commit e403fe3 into sass:master Apr 6, 2015
@xzyfer xzyfer added this to the 3.0 milestone Apr 20, 2015
@xzyfer xzyfer mentioned this pull request Apr 20, 2015
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.

2 participants