squakez commented on code in PR #6886:
URL: https://github.com/apache/camel-k/pull/6886#discussion_r4295164933


##########
pkg/cmd/source/util.go:
##########
@@ -61,6 +62,10 @@ func isGlobCandidate(uri string) (bool, error) {
 func isExistingFile(uri string) (bool, error) {
        info, err := os.Stat(uri)
        if err != nil {
+               if errors.Is(err, fs.ErrPermission) {
+                       return false, fmt.Errorf("file system error while 
looking for %s: %w", uri, err)

Review Comment:
   ```suggestion
                        return false, fmt.Errorf("file system permission error 
while looking for %s: %w", uri, err)
   ```



##########
pkg/cmd/source/util.go:
##########


Review Comment:
   ```suggestion
                // If it is a different error, we should report it back
   ```



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