likyh opened a new issue, #4282:
URL: https://github.com/apache/incubator-devlake/issues/4282

   ## What and why to refactor
   ```
   caused by: Error running task 16998. (400)
           Wraps: (2) error preparing task data for jenkins (400)
           Wraps: (3) fail to get transformationRule (400)
           Wraps: (4) record not found
   ```
   Now error messages are not readable for users. Because it's difficult to 
write more user-friendly tips in the backend. The detail message have been 
wrapped.
   
   ## Describe the solution you'd like
   show the inner message to users.
   ```
   caused by: fail to get transformationRule  ← show for users
           Calls: (1) Error running task 16998. (400)
           Calls: (2) error preparing task data for jenkins (400)
           Calls: (3) -
           Calls: (4) record not found
   ```
   Split `wrap` to 2 functions `wrap` and `as`. use `as` to recognize which 
error is. use `wrap` to record where errors go. 


-- 
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]

Reply via email to