You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/11/07 22:59:34 UTC

[jira] [Commented] (CLIMATE-487) data_source.local returns bad error when incorrect file path is provided

    [ https://issues.apache.org/jira/browse/CLIMATE-487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14202775#comment-14202775 ] 

ASF GitHub Bot commented on CLIMATE-487:
----------------------------------------

GitHub user MJJoyce opened a pull request:

    https://github.com/apache/climate/pull/131

    CLIMATE-487 - Improve error message when local dataset load fails

    - Explicit RuntimeErrors are not properly handled to alert the user that
      the supplied file path is invalid. This helps clarify user
      controllable failures.
    - Attempt to make the generic error on dataset loading a bit more
      descriptive to help users.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MJJoyce/climate CLIMATE-487

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/climate/pull/131.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #131
    
----
commit c5a694dcb0d01b57be69788b4762afa87a5c8f6b
Author: Michael Joyce <jo...@apache.org>
Date:   2014-11-07T21:49:04Z

    CLIMATE-487 - Improve error message when local dataset load fails
    
    - Explicit RuntimeErrors are not properly handled to alert the user that
      the supplied file path is invalid. This helps clarify user
      controllable failures.
    - Attempt to make the generic error on dataset loading a bit more
      descriptive to help users.

----


> data_source.local returns bad error when incorrect file path is provided
> ------------------------------------------------------------------------
>
>                 Key: CLIMATE-487
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-487
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>          Components: data sources
>    Affects Versions: 0.3-incubating
>            Reporter: Michael Joyce
>              Labels: Newcomer
>             Fix For: 0.5
>
>
> ocw.data_source.local.load_file will return a ValueError stating that only NetCDF files are supported if you pass it an invalid file path. This makes debugging a bit fun sometimes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)