@@ -105,7 +105,7 @@ extern "C" {
105
105
json_append_member (json_err, " message" , json_mkstring (e.what ()));
106
106
json_append_member (json_err, " formatted" , json_mkstring (msg_stream.str ().c_str ()));
107
107
108
- c_ctx->error_json = json_stringify (json_err, " " );;
108
+ try { c_ctx->error_json = json_stringify (json_err, " " ); } catch (...) {}
109
109
c_ctx->error_message = sass_copy_c_string (msg_stream.str ().c_str ());
110
110
c_ctx->error_text = sass_copy_c_string (e.what ());
111
111
c_ctx->error_status = 1 ;
@@ -124,7 +124,7 @@ extern "C" {
124
124
json_append_member (json_err, " status" , json_mknumber (2 ));
125
125
json_append_member (json_err, " message" , json_mkstring (ba.what ()));
126
126
json_append_member (json_err, " formatted" , json_mkstring (msg_stream.str ().c_str ()));
127
- c_ctx->error_json = json_stringify (json_err, " " );;
127
+ try { c_ctx->error_json = json_stringify (json_err, " " ); } catch (...) {}
128
128
c_ctx->error_message = sass_copy_c_string (msg_stream.str ().c_str ());
129
129
c_ctx->error_text = sass_copy_c_string (ba.what ());
130
130
c_ctx->error_status = 2 ;
@@ -139,7 +139,7 @@ extern "C" {
139
139
json_append_member (json_err, " status" , json_mknumber (3 ));
140
140
json_append_member (json_err, " message" , json_mkstring (e.what ()));
141
141
json_append_member (json_err, " formatted" , json_mkstring (msg_stream.str ().c_str ()));
142
- c_ctx->error_json = json_stringify (json_err, " " );;
142
+ try { c_ctx->error_json = json_stringify (json_err, " " ); } catch (...) {}
143
143
c_ctx->error_message = sass_copy_c_string (msg_stream.str ().c_str ());
144
144
c_ctx->error_text = sass_copy_c_string (e.what ());
145
145
c_ctx->error_status = 3 ;
@@ -154,7 +154,7 @@ extern "C" {
154
154
json_append_member (json_err, " status" , json_mknumber (4 ));
155
155
json_append_member (json_err, " message" , json_mkstring (e.c_str ()));
156
156
json_append_member (json_err, " formatted" , json_mkstring (msg_stream.str ().c_str ()));
157
- c_ctx->error_json = json_stringify (json_err, " " );;
157
+ try { c_ctx->error_json = json_stringify (json_err, " " ); } catch (...) {}
158
158
c_ctx->error_message = sass_copy_c_string (msg_stream.str ().c_str ());
159
159
c_ctx->error_text = sass_copy_c_string (e.c_str ());
160
160
c_ctx->error_status = 4 ;
@@ -169,7 +169,7 @@ extern "C" {
169
169
json_append_member (json_err, " status" , json_mknumber (4 ));
170
170
json_append_member (json_err, " message" , json_mkstring (e));
171
171
json_append_member (json_err, " formatted" , json_mkstring (msg_stream.str ().c_str ()));
172
- c_ctx->error_json = json_stringify (json_err, " " );;
172
+ try { c_ctx->error_json = json_stringify (json_err, " " ); } catch (...) {}
173
173
c_ctx->error_message = sass_copy_c_string (msg_stream.str ().c_str ());
174
174
c_ctx->error_text = sass_copy_c_string (e);
175
175
c_ctx->error_status = 4 ;
@@ -183,7 +183,7 @@ extern "C" {
183
183
msg_stream << " Unknown error occurred" << std::endl;
184
184
json_append_member (json_err, " status" , json_mknumber (5 ));
185
185
json_append_member (json_err, " message" , json_mkstring (" unknown" ));
186
- c_ctx->error_json = json_stringify (json_err, " " );;
186
+ try { c_ctx->error_json = json_stringify (json_err, " " ); } catch (...) {}
187
187
c_ctx->error_message = sass_copy_c_string (msg_stream.str ().c_str ());
188
188
c_ctx->error_text = sass_copy_c_string (" unknown" );
189
189
c_ctx->error_status = 5 ;
0 commit comments