Mikael,

 I have applied this patch to next. Please, watch the line ending
whitespace in the future. There is a pre-commit hook you can setup to
manage that.

Thanks,
Eric

On Sun, Jan 18, 2009 at 4:00 AM, Mikael Magnusson <[email protected]> wrote:
>
> From: Mikael Magnusson <[email protected]>
>
> Signed-off-by: Mikael Magnusson <[email protected]>
> ---
>  server/sinan/src/sin_depends.erl |   14 +++++++++++---
>  1 files changed, 11 insertions(+), 3 deletions(-)
>
> diff --git a/server/sinan/src/sin_depends.erl 
> b/server/sinan/src/sin_depends.erl
> index af26fc8..8bdd0c8 100644
> --- a/server/sinan/src/sin_depends.erl
> +++ b/server/sinan/src/sin_depends.erl
> @@ -142,9 +142,17 @@ resolve_project_dependencies(Prefix,
>                              [Dep | Deps], Acc) ->
>      case already_resolved(Dep, Acc) of
>         false ->
> -            [Version | _] = sin_resolver:package_versions(Prefix,
> -                                                          ErtsVersion,
> -                                                          Dep),
> +            Version =
> +                case sin_resolver:package_versions(Prefix,
> +                                                   ErtsVersion,
> +                                                   Dep) of
> +                    [] ->
> +                        ?ETA_RAISE_DA(unable_to_find_dependency,
> +                                      "Couldn't find dependency ~s.",
> +                                      [Dep]);
> +                    [Version1 | _] ->
> +                        Version1
> +                end,
>             NDeps = sin_resolver:package_dependencies(Prefix,
>                                                       ErtsVersion,
>                                                       Dep,
> --
> 1.5.6.3
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlware-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/erlware-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to