Clean up error handling

[?]
Oct 3, 2013, 12:45 PM
AGQ2MGFEJPFHSV2HPEQLRSTGHIQBMSHS5YWBPQ5PBPGHJ2VRQ5JQC

Dependencies

  • [2] KYSBJAYN Allow dashes in jobset input names
  • [3] NYC3LZKH * Generate NAR archives on the fly. Necessary for producing channels
  • [4] LZVO64YG Merge in the first bits of the API work
  • [5] SMM4HQTP * Put actions related to builds under /build (e.g. /log/<buildid>
  • [6] LSZLZHJY Allow users to edit their own settings
  • [7] 2JQ7WEFM
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • replacement in src/lib/Hydra/Controller/Root.pm at line 226
    [3.226][3.23099:23130](),[3.23130][2.211:268]()
    if (scalar @{$c->error}) {
    $c->stash->{resource} = { errors => $c->error };
    [3.226]
    [3.1625]
    elsif (scalar @{$c->error}) {
    $c->stash->{resource} = { error => join "\n", @{$c->error} };
  • edit in src/lib/Hydra/Controller/Root.pm at line 236
    [3.1736][3.23190:23508]()
    } elsif (defined $c->stash->{resource} and
    (ref $c->stash->{resource} eq ref {}) and
    defined $c->stash->{resource}->{error}) {
    $c->stash->{template} = 'error.tt';
    $c->stash->{httpStatus} =
    $c->response->status . " " . HTTP::Status::status_message($c->response->status);
  • edit in src/lib/Hydra/Controller/Root.pm at line 241
    [3.23542]
    [3.23542]