Skip to content

Instantly share code, notes, and snippets.

@si14
Created July 28, 2011 15:17
Show Gist options
  • Save si14/1111730 to your computer and use it in GitHub Desktop.
Save si14/1111730 to your computer and use it in GitHub Desktop.
Result = try
...
catch
throw:{error, _}=Err -> Err
end,
Result2 = case Result of
{error, _}=Err -> Err;
Proplist when is_list(Proplist) ->
[[A, B] || {A, B} <- Result]
end,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment