Commit b26bd00d by Brett Wilkins

Amending Exception message in renderSync, Mac precompiled

parent e82cfa94
...@@ -74,7 +74,6 @@ Handle<Value> Render(const Arguments& args) { ...@@ -74,7 +74,6 @@ Handle<Value> Render(const Arguments& args) {
Handle<Value> RenderSync(const Arguments& args) { Handle<Value> RenderSync(const Arguments& args) {
HandleScope scope; HandleScope scope;
TryCatch try_catch;
sass_context* ctx = sass_new_context(); sass_context* ctx = sass_new_context();
char *source; char *source;
String::AsciiValue astr(args[0]); String::AsciiValue astr(args[0]);
...@@ -90,9 +89,9 @@ Handle<Value> RenderSync(const Arguments& args) { ...@@ -90,9 +89,9 @@ Handle<Value> RenderSync(const Arguments& args) {
sass_compile(ctx); sass_compile(ctx);
if (ctx->error_status == 0) { if (ctx->error_status == 0) {
return scope.Close(Local<Value>::New(String::New(ctx->output_string))); return scope.Close(Local<Value>::New(String::New(ctx->output_string)));
} else {
ThrowException(Exception::Error(String::New("Input does not appear to be valid SCSS.")));
} }
ThrowException(Exception::Error(String::New(ctx->error_message)));
return scope.Close(Undefined()); return scope.Close(Undefined());
} }
......
This diff was suppressed by a .gitattributes entry.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment