Skip to content

Commit a6f7108

Browse files
committed
Missing from 102706e
1 parent 4eadf37 commit a6f7108

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sass.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ PySass_compile(PyObject *self, PyObject *args, PyObject *kwds)
193193
sass_compile_file(context.filename);
194194

195195
if (context.filename->error_status) {
196-
PyErr_SetString(PyExc_IOError, context.filename->error_message);
196+
PyErr_SetString(PySass_CompileError,
197+
context.filename->error_message);
197198
result = NULL;
198199
goto finalize_filename;
199200
}
@@ -227,7 +228,8 @@ PySass_compile(PyObject *self, PyObject *args, PyObject *kwds)
227228
sass_compile_folder(context.dirname);
228229

229230
if (context.dirname->error_status) {
230-
PyErr_SetString(PyExc_IOError, context.dirname->error_message);
231+
PyErr_SetString(PySass_CompileError,
232+
context.dirname->error_message);
231233
result = NULL;
232234
goto finalize_dirname;
233235
}

0 commit comments

Comments
 (0)