Skip to content

Commit f05d58e

Browse files
committed
One more
1 parent b22eed3 commit f05d58e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/error_handling.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ namespace Sass {
1818
sass::string def_op_null_msg("Invalid null operation");
1919
sass::string def_nesting_limit("Code too deeply neested");
2020

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+
2125
Base::Base(SourceSpan pstate, sass::string msg, Backtraces traces)
2226
: std::runtime_error(msg.c_str()), msg(msg),
2327
prefix("Error"), pstate(pstate), traces(traces)

src/error_handling.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ namespace Sass {
2626
extern sass::string def_op_null_msg;
2727
extern sass::string def_nesting_limit;
2828

29-
const sass::string msg_recursion_limit =
30-
"Too deep recursion detected. This can be caused by too deep level nesting.\n"
31-
"LibSass will abort here in order to avoid a possible stack overflow.\n";
29+
extern sass::string msg_recursion_limit;
3230

3331
class Base : public std::runtime_error {
3432
protected:

0 commit comments

Comments
 (0)