Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 79fdbb3

Browse files
committed
Another try
1 parent 1daccb7 commit 79fdbb3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/error_handling.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ namespace Sass {
1414

1515
namespace Exception {
1616

17-
sass::string def_msg("Invalid sass detected");
18-
sass::string def_op_null_msg("Invalid null operation");
19-
sass::string def_nesting_limit("Code too deeply neested");
20-
21-
sass::string msg_recursion_limit =
22-
"Too deep recursion detected. This can be caused by too deep level nesting.\n"
23-
"LibSass will abort here in order to avoid a possible stack overflow.\n";
24-
2517
Base::Base(SourceSpan pstate, sass::string msg, Backtraces traces)
2618
: std::runtime_error(msg.c_str()), msg(msg),
2719
prefix("Error"), pstate(pstate), traces(traces)

src/error_handling.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ namespace Sass {
2121

2222
namespace Exception {
2323

24+
const sass::string def_msg("Invalid sass detected");
25+
const sass::string def_op_null_msg("Invalid null operation");
26+
const sass::string def_nesting_limit("Code too deeply neested");
27+
28+
const sass::string msg_recursion_limit =
29+
"Too deep recursion detected. This can be caused by too deep level nesting.\n"
30+
"LibSass will abort here in order to avoid a possible stack overflow.\n";
31+
2432
class Base : public std::runtime_error {
2533
protected:
2634
sass::string msg;

0 commit comments

Comments
 (0)