@@ -296,7 +296,7 @@ namespace Sass {
296
296
// The SassScript `>` operation.
297
297
bool Value::greaterThan (Value* other, Logger& logger, const SourceSpan& pstate) const
298
298
{
299
- logger. addFinalStackTrace ( pstate);
299
+ callStackFrame csf (logger, pstate);
300
300
throw Exception::SassScriptException (
301
301
" Undefined operation \" " + inspect ()
302
302
+ " > " + other->inspect () + " \" ." ,
@@ -307,7 +307,7 @@ namespace Sass {
307
307
// The SassScript `>=` operation.
308
308
bool Value::greaterThanOrEquals (Value* other, Logger& logger, const SourceSpan& pstate) const
309
309
{
310
- logger. addFinalStackTrace ( pstate);
310
+ callStackFrame csf (logger, pstate);
311
311
throw Exception::SassScriptException (
312
312
" Undefined operation \" " + inspect ()
313
313
+ " >= " + other->inspect () + " \" ." ,
@@ -318,7 +318,7 @@ namespace Sass {
318
318
// The SassScript `<` operation.
319
319
bool Value::lessThan (Value* other, Logger& logger, const SourceSpan& pstate) const
320
320
{
321
- logger. addFinalStackTrace ( pstate);
321
+ callStackFrame csf (logger, pstate);
322
322
throw Exception::SassScriptException (
323
323
" Undefined operation \" " + inspect ()
324
324
+ " < " + other->inspect () + " \" ." ,
@@ -329,7 +329,7 @@ namespace Sass {
329
329
// The SassScript `<=` operation.
330
330
bool Value::lessThanOrEquals (Value* other, Logger& logger, const SourceSpan& pstate) const
331
331
{
332
- logger. addFinalStackTrace ( pstate);
332
+ callStackFrame csf (logger, pstate);
333
333
throw Exception::SassScriptException (
334
334
" Undefined operation \" " + inspect ()
335
335
+ " <= " + other->inspect () + " \" ." ,
@@ -340,7 +340,7 @@ namespace Sass {
340
340
// The SassScript `*` operation.
341
341
Value* Value::times (Value* other, Logger& logger, const SourceSpan& pstate) const
342
342
{
343
- logger. addFinalStackTrace ( pstate);
343
+ callStackFrame csf (logger, pstate);
344
344
throw Exception::SassScriptException (
345
345
" Undefined operation \" " + inspect ()
346
346
+ " * " + other->inspect () + " \" ." ,
@@ -351,7 +351,7 @@ namespace Sass {
351
351
// The SassScript `%` operation.
352
352
Value* Value::modulo (Value* other, Logger& logger, const SourceSpan& pstate) const
353
353
{
354
- logger. addFinalStackTrace ( pstate);
354
+ callStackFrame csf (logger, pstate);
355
355
throw Exception::SassScriptException (
356
356
" Undefined operation \" " + inspect ()
357
357
+ " % " + other->inspect () + " \" ." ,
@@ -441,7 +441,7 @@ namespace Sass {
441
441
// Assert and return a color or throws if incompatible
442
442
const Color* Value::assertColor (Logger& logger, const sass::string& name) const
443
443
{
444
- logger. addFinalStackTrace ( pstate ());
444
+ callStackFrame csf (logger, pstate ());
445
445
throw Exception::SassScriptException (
446
446
inspect () + " is not a color." ,
447
447
logger, pstate (), name);
@@ -450,7 +450,7 @@ namespace Sass {
450
450
// Assert and return a function or throws if incompatible
451
451
Function* Value::assertFunction (Logger& logger, const sass::string& name)
452
452
{
453
- logger. addFinalStackTrace ( pstate ());
453
+ callStackFrame csf (logger, pstate ());
454
454
throw Exception::SassScriptException (
455
455
inspect () + " is not a function reference." ,
456
456
logger, pstate (), name);
@@ -459,7 +459,7 @@ namespace Sass {
459
459
// Assert and return a map or throws if incompatible
460
460
Map* Value::assertMap (Logger& logger, const sass::string& name)
461
461
{
462
- logger. addFinalStackTrace ( pstate ());
462
+ callStackFrame csf (logger, pstate ());
463
463
throw Exception::SassScriptException (
464
464
inspect () + " is not a map." ,
465
465
logger, pstate (), name);
@@ -468,7 +468,7 @@ namespace Sass {
468
468
// Assert and return a number or throws if incompatible
469
469
Number* Value::assertNumber (Logger& logger, const sass::string& name)
470
470
{
471
- logger. addFinalStackTrace ( pstate ());
471
+ callStackFrame csf (logger, pstate ());
472
472
throw Exception::SassScriptException (
473
473
inspect () + " is not a number." ,
474
474
logger, pstate (), name);
@@ -484,7 +484,7 @@ namespace Sass {
484
484
// Assert and return a string or throws if incompatible
485
485
String* Value::assertString (Logger& logger, const sass::string& name)
486
486
{
487
- logger. addFinalStackTrace ( pstate ());
487
+ callStackFrame csf (logger, pstate ());
488
488
throw Exception::SassScriptException (
489
489
inspect () + " is not a string." ,
490
490
logger, pstate (), name);
@@ -508,7 +508,7 @@ namespace Sass {
508
508
// Assert and return an argument list or throws if incompatible
509
509
ArgumentList* Value::assertArgumentList (Logger& logger, const sass::string& name)
510
510
{
511
- logger. addFinalStackTrace ( pstate ());
511
+ callStackFrame csf (logger, pstate ());
512
512
throw Exception::SassScriptException (
513
513
inspect () + " is not an argument list." ,
514
514
logger, pstate (), name);
0 commit comments