Skip to content

Getting baddict error #4

@dominikb1888

Description

@dominikb1888

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)),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions