Handle UTF-8 characters in eval error messages

[?]
Sep 25, 2013, 1:51 PM
AKRVETP5YMH3O36HFKUP7BHF2Q3Y3HMVYYG2N75JMRJVF5HVVYNAC

Dependencies

  • [2] GA6XIXAN * Show the input bindings in evaluation error messages.
  • [3] SRBU2RAE Warn against multiple jobs with the same name
  • [4] SHZLOM5M * eval-jobs -> hydra_eval_jobs.
  • [5] 7ZYBTNJJ revert unmeant previous change which caused errors to stay, even after successful evaluation of jobs
  • [6] FYO6NECE hydra
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate
  • [*] 3XTHEUMP * Implemented the clone feature.
  • [*] N22GPKYT * Put info about logs / build products in the DB.
  • [*] POPU2ATH * hydra_scheduler: use eval-jobs.
  • [*] JK2QWPH6

Change contents

  • edit in src/lib/Hydra/Helper/AddBuilds.pm at line 5
    [9.1272]
    [9.1272]
    use utf8;
  • edit in src/lib/Hydra/Helper/AddBuilds.pm at line 294
    [3.303]
    [3.303]
    # Handle utf-8 characters in error messages. No idea why this works.
    utf8::decode($_->{msg}) foreach @{$jobs->{error}};
  • edit in src/script/hydra-evaluator at line 5
    [11.289]
    [12.473]
    use utf8;
  • replacement in src/script/hydra-evaluator at line 254
    [2.517][2.517:608]()
    $msg .= "at `" . $error->{location} . "' [$bindings]:\n" . $error->{msg} . "\n\n";
    [2.517]
    [4.4988]
    $msg .=
    ($error->{location} ne "" ? "in job ‘$error->{location}’" : "at top-level") .
    " [$bindings]:\n" . $error->{msg} . "\n\n";