pefernan commented on code in PR #2675:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2675#discussion_r1805073852


##########
packages/runtime-tools-process-dev-ui-webapp/src/components/containers/ProcessFormContainer/ProcessFormContainer.tsx:
##########
@@ -57,7 +57,9 @@ const ProcessFormContainer: 
React.FC<ProcessFormContainerProps & OUIAProps> = ({
               onSubmitSuccess(id);
             })
             .catch((error) => {
-              const message = error.response ? error.response.data : 
error.message;
+              const message = error.response
+                ? ` ${error.message}   ' ${error.response.request.statusText} 
'`

Review Comment:
   Nip picking here. In this case I'd like to have a separator between both 
messages. I'd use `error.response.statusText` instead too.
   
   Something like:
   
   
   ```suggestion
                   ? `${error.response.statusText}': ${error.message}`
   ```
   
   Notice I removed some blank spacess from the string too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to