You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/09/01 03:20:07 UTC

[GitHub] [incubator-devlake] keon94 opened a new issue, #2907: [Feature][Framework] Enforce errors.Error interface usage throughout backend code

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

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar feature requirement.
   
   
   ### Description
   
   #2134 introduced a new error interface with an extended API. The existing function signatures however use the native golang error interface. Replace them all with errors.Error.
   
   ### Use case
   
   Use errors.Error in the API signatures.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] keon94 commented on issue #2907: [Feature][Framework] Enforce errors.Error interface usage throughout backend code

Posted by GitBox <gi...@apache.org>.
keon94 commented on issue #2907:
URL: https://github.com/apache/incubator-devlake/issues/2907#issuecomment-1233693256

   tip: Using this Regex/Replace will take care of transforming most if not all function signatures (except lambdas):
   _regex:_ (^(func|)\s+?(\(.*?\)|)\s*[A-Z][A-Za-z_0-9]+?\(.*\).*?)(error)([\s|,|\)].*$)
   _sub:_ $1errors.Error$5
   


-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] keon94 commented on issue #2907: [Feature][Framework] Enforce errors.Error interface usage throughout backend code

Posted by GitBox <gi...@apache.org>.
keon94 commented on issue #2907:
URL: https://github.com/apache/incubator-devlake/issues/2907#issuecomment-1240216949

   PR: #2941


-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] klesh closed issue #2907: [Feature][Framework] Enforce errors.Error interface usage throughout backend code

Posted by GitBox <gi...@apache.org>.
klesh closed issue #2907: [Feature][Framework] Enforce errors.Error interface usage throughout backend code
URL: https://github.com/apache/incubator-devlake/issues/2907


-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org