Skip to content

Commit be208c1

Browse files
committed
Mention how to enable forks in the corresponding error message
1 parent b718bdb commit be208c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

naucse/utils/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ def forks_raise_if_disabled():
113113
""" Raises ValueError if forks are not enabled.
114114
"""
115115
if not forks_enabled():
116-
raise ValueError("You must explicitly allow forks to be rendered.")
116+
raise ValueError(
117+
"You must explicitly allow forks to be rendered.\n"
118+
"Set FORKS_ENABLED=true to enable them.")
117119

118120

119121
def raise_errors_from_forks():

0 commit comments

Comments
 (0)