Skip to content

Commit bd5e854

Browse files
author
Brenton Bostick
committed
warn about bad values for BreakLinesMethod
1 parent c352198 commit bd5e854

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CodeFormatter/Kernel/CodeFormatter.wl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,11 @@ Module[{
420420
tabWidth = OptionValue["TabWidth"];
421421

422422
breakLinesMethod = OptionValue["BreakLinesMethod"];
423+
424+
If[!MemberQ[{"LineBreakerV1", "LineBreakerV2"}, breakLinesMethod],
425+
Throw[Failure["UnrecognizedOptionValue", <| "BreakLinesMethod" -> breakLinesMethod |>]]
426+
];
427+
423428
lineWidth = OptionValue["LineWidth"];
424429
safetyMargin = OptionValue["SafetyMargin"];
425430

0 commit comments

Comments
 (0)