Commit 2a2c0d2a371d241a86ad9ed28ffa79373d812343

Authored by Elena.Budnik
1 parent 73e42b04

email error msg

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
src/InputOutput/WSImpl/Tools/WSJobsManagerClass.php
... ... @@ -36,14 +36,18 @@ class WSJobsManagerClass extends IHMJobsManagerClass {
36 36 if (!file_exists($this->jobXmlName))
37 37 {
38 38 $res = $this->createJobsFile();
39   - if (!$res['success'])
  39 + if (!$res['success']) {
  40 + error_log("WebServices Error : Cannot create WSjobs.xml", 1, email);
40 41 return $res;
  42 + }
41 43 }
42 44 $res = $this->jobXml->load($this->jobXmlName);
43   - if (!$res)
  45 + if (!$res) {
  46 + error_log("WebServices Error : Cannot load WSjobs.xml", 1, email);
44 47 return array(
45 48 "success" => false,
46 49 "message" => "Cannot load jobs file");
  50 + }
47 51  
48 52 return array("success" => true);
49 53 }
... ...