Skip to content

Commit 8bb40b1

Browse files
TD5meta-codesync[bot]
authored andcommitted
Clarify pattern vs. value
Summary: Try to make it clearer which is the value and which is the pattern in a badmatch report. Reviewed By: michalmuskala Differential Revision: D85581163 fbshipit-source-id: 299cf8a2cd008d8a0b8b1978d1b6c6f1a3fcd79a
1 parent ee9ddb6 commit 8bb40b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wa_blame.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,9 @@ format_function_clause_reason(BlameInfo, M, F, A, Args) ->
500500
-spec format_badmatch_reason(string(), term()) -> string().
501501
format_badmatch_reason(BlameInfo, Value) ->
502502
Format =
503-
"~n~nMatch failed:~n~n"
503+
"~n~nMatch failed. Pattern:~n~n"
504504
"~ts~n~n"
505-
"For the provided input:~n~n"
505+
"Did not match the provided value:~n~n"
506506
"~p~n~n",
507507
lists:flatten(io_lib:format(Format, [BlameInfo, Value])).
508508

0 commit comments

Comments
 (0)