[erlang-bugs] typo in diameter_service.erl?

Ulf Wiger <>
Sat Oct 22 07:04:25 CEST 2011


In https://github.com/erlang/otp/blob/master/lib/diameter/src/app/diameter_service.erl#L2028

fa(Rec, FailedAvp, Dict) ->
    try
        {'Failed-AVP', [FailedAvp]}
    catch
        error: _ ->
            Avps = Dict:'get-'('AVP', Rec),
            A = #diameter_avp{name = 'Failed-AVP',
                              value = FailedAvp},
            {'AVP', [A|Avps]}
    end.

Shouldn't that be 

Avps = Dict:'#get-'('AVP', Rec)?

This is just from visual inspection of the code. I haven't tried actually executing the exception clause.

BR,
Ulf W

Ulf Wiger, CTO, Erlang Solutions, Ltd.
http://erlang-solutions.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20111022/7c9fdd83/attachment.html>


More information about the erlang-bugs mailing list