squakez opened a new pull request #1913:
URL: https://github.com/apache/camel-k/pull/1913


   * Changed the name of run.isLocal func to run.isLocalAndExists as the 
function does both things
   * Added a default switch case to report either the file doesn't exist or the 
URI scheme cannot be parsed
   * Added some unit test to verify error messages expected
   
   Fixes #1911
   
   ```
   $ ./kamel run ../camel-k-samples/hello.groovy  dsadsa
   Error: cannot read sources: cannot read sources: Missing file or unsupported 
scheme in dsadsa
   ```
   
   <!-- Description -->
   
   
   
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" 
to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   fix(cli): check run sources exists
   ```
   


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

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


Reply via email to