The spot that made that error was impossible to jump to, but both places
could be extracted to a method. Would that be better?


On Thu, Jan 9, 2014 at 4:45 AM, Clint <notifications@github.com> wrote:

> In lib/heroku/helpers/heroku_postgresql.rb:
>
> > @@ -80,11 +80,20 @@ def hpg_addon_name
> >
> >      private
> >
> > +    def protect_missing_app
> > +      # in the case where --app was left out, AND app::db shorthand was not used, AND no app autodetect
> > +      unless app_name
> > +        error("No app specified.\nRun this command from an app folder or specify which app to use with --app APP.")
>
> We have this same error message in two places now, was this unavoidable?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/heroku/heroku/pull/979/files#r8754903>
> .
>