aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_compiler_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2014-01-16 12:57:43 +0100
committerAnders Svensson <[email protected]>2014-01-16 13:06:44 +0100
commit3f79e7bd7e743ffd40b624caf680aef2bdb15dc7 (patch)
tree1ad2f8d6e6aa60c30e4f8b0cc08af49fe993553b /lib/diameter/test/diameter_compiler_SUITE.erl
parent17303e17116415e7758e96530814b0a6f3f9a93f (diff)
downloadotp-3f79e7bd7e743ffd40b624caf680aef2bdb15dc7.tar.gz
otp-3f79e7bd7e743ffd40b624caf680aef2bdb15dc7.tar.bz2
otp-3f79e7bd7e743ffd40b624caf680aef2bdb15dc7.zip
Don't format diameter_make:codec/2 errors
Instead, add diameter_make:format_error/1 to allow the caller to format if desired, which is what applications like compiler and yecc do. Use this to check that the expected error is the one actually generated in the compiler suite.
Diffstat (limited to 'lib/diameter/test/diameter_compiler_SUITE.erl')
-rw-r--r--lib/diameter/test/diameter_compiler_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_compiler_SUITE.erl b/lib/diameter/test/diameter_compiler_SUITE.erl
index cc423d5bc6..0b053219cd 100644
--- a/lib/diameter/test/diameter_compiler_SUITE.erl
+++ b/lib/diameter/test/diameter_compiler_SUITE.erl
@@ -397,8 +397,8 @@ replace({E, Mods}, Bin) ->
case {E, parse(B, [{include, here()}]), Mods} of
{ok, {ok, Dict}, _} ->
Dict;
- {_, {error, S}, _} when E /= ok ->
- S
+ {_, {error, {E,_} = T}, _} when E /= ok ->
+ diameter_make:format_error(T)
end.
re({RE, Repl}, Bin) ->