@@ -533,10 +533,10 @@ |
||
533 | 533 | try { |
534 | 534 | $ret = $issueService->create($issueField); |
535 | 535 | } catch (\JiraRestApi\JiraException $e) { |
536 | - //Sample return error with json in it. |
|
537 | - //Pasting here so I can mock this return message in the unit tests. |
|
538 | - //CURL HTTP Request Failed: Status Code : 400, URL:https://[hostname]/rest/api/2/issue |
|
539 | - //Error Message : {"errorMessages":[],"errors":{"user_type":"Field 'user_type' cannot be set. It is not on the appropriate screen, or unknown."}} */ |
|
536 | + //Sample return error with json in it. |
|
537 | + //Pasting here so I can mock this return message in the unit tests. |
|
538 | + //CURL HTTP Request Failed: Status Code : 400, URL:https://[hostname]/rest/api/2/issue |
|
539 | + //Error Message : {"errorMessages":[],"errors":{"user_type":"Field 'user_type' cannot be set. It is not on the appropriate screen, or unknown."}} */ |
|
540 | 540 | $msg = $e->getMessage(); |
541 | 541 | if (strpos($msg, '{') !== false) { |
542 | 542 | $msg = str_split($msg); |