csd icon indicating copy to clipboard operation
csd copied to clipboard

Getting baddict error

Open dominikb1888 opened this issue 11 years ago • 1 comments

Apparently in this file: https://github.com/OJ/csd/blob/Part4-20120215/apps/csd_web/src/csd_web_snippet_resource.erl

Extracting the corresponding value to key from the dist needs an additional call to dict:from_list. Related to updated versions of mochiweb/webmacine?

Line 17 should the read as follows: {ok, SnippetKey} = dict:find(key, dict:from_list(PathInfo)),

dominikb1888 avatar Sep 08 '13 16:09 dominikb1888

Thanks @dominikb1888, this is idneed a problem as a result of Webmachine changes. I'll be updating this in the final blog post in the series :) Thanks!

OJ avatar Sep 16 '13 21:09 OJ