<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Zach:<div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Dialyzer is basically telling you that, with the parameters you’re using <span style="font-family: monospace, monospace;" class="">MapId, UserId, ClientId, Terms</span>), the function convert_map_to_record/4 can never return {ok, _}.</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Without the code preceding the function call and the code for convert_map_to_record/4, it’ll be hard to tell you exactly what’s going on.</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Cheers!</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Jan 25, 2016, at 11:09, Zachary Kessin <<a href="mailto:zkessin@gmail.com" class="">zkessin@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I have a strange dialyzer problem, I have this code<div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class=""> case convert_map_to_record(MapId, UserId, ClientId, Terms) of</font></div><div class=""><font face="monospace, monospace" style="background-color:rgb(234,153,153)" class=""> {ok, MapRecord} -></font></div><div class=""><font face="monospace, monospace" class=""> %....</font></div><div class=""><font face="monospace, monospace" class=""> {true, ReqData1, MapRecord};</font></div><div class=""><font face="monospace, monospace" class=""> {error, Error} -></font></div><div class=""><font face="monospace, monospace" class=""> lager:error("Error ~p", [Error]),</font></div><div class=""><font face="monospace, monospace" class=""> {{error, 405}, ReqData, State}</font></div><div class=""><font face="monospace, monospace" class=""> end</font></div><div class=""><br class=""></div><div class="">and dialyzer is saying this</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">_build/default/lib/frontend/src/wm_map.erl</font></div><div class=""><font face="monospace, monospace" class=""> 100: The pattern {'ok', MapRecord} can never match the type {'error',_}</font></div></div><div class=""><br class=""></div><div class="">With what is line 100 being the line with the red background, what is strange is that that the error case is covered in the case statement</div><div class=""><br class=""></div><div class="">Zach</div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">Zach Kessin</div><div class=""><span style="font-size:12.8px" class=""><a href="http://yourcrm.link/?utm_source=email%20signature&utm_medium=email&utm_campaign=passive" target="_blank" class="">Your CRM Link</a></span></div><div class=""><span style="font-size:12.8px" class="">Twitter: </span><a href="https://twitter.com/zkessin" style="font-size:12.8px" target="_blank" class="">@zkessin</a><br class=""></div><div class="">Skype: zachkessin<br class=""></div></div></div></div></div></div></div>
</div></div><div hspace="streak-pt-mark" style="max-height:1px" class=""><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aemtlc3NpbkBnbWFpbC5jb20%3D&type=zerocontent&guid=6b27e679-4a69-47c5-93db-637bc6ad1a86" class=""><font color="#ffffff" size="1" class="">ᐧ</font></div>
_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></div></body></html>