Commit a7c465c10246da15cfb7d865c608bb03c8b859bd
1 parent
a7dc4fc2
Exists in
master
and in
19 other branches
[Fixed #57] Melhoria em detalhes de falha na página de envio externo do processos
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
rn/ProcessoEletronicoRN.php
... | ... | @@ -405,12 +405,13 @@ class ProcessoEletronicoRN extends InfraRN { |
405 | 405 | try { |
406 | 406 | return $this->getObjPenWs()->enviarProcesso($parametros); |
407 | 407 | } catch (\Exception $e) { |
408 | - $mensagem = "Falha no envio externo do processo"; | |
408 | + $mensagem = "Falha no envio externo do processo: "; | |
409 | 409 | $detalhes = InfraString::formatarJavaScript($this->tratarFalhaWebService($e)); |
410 | 410 | if ($e instanceof \SoapFault && !empty($e->detail->interoperabilidadeException->codigoErro) && $e->detail->interoperabilidadeException->codigoErro == '0005') { |
411 | 411 | $detalhes = 'O código mapeado para a unidade ' . utf8_decode($parametros->novoTramiteDeProcesso->processo->documento[0]->produtor->unidade->nome) . ' está incorreto.'; |
412 | 412 | } |
413 | 413 | |
414 | + $mensagem .= $detalhes; | |
414 | 415 | throw new InfraException($mensagem, $e, $detalhes); |
415 | 416 | } |
416 | 417 | } | ... | ... |