tsungyong: I've updated it.  I wonder if it would be a bit cleaner if this was implemented in tabulator.Stream though, as the root issue is that `Stream.open('invalid.csv')` is giving a different error from `Stream.open('invalid')`, even though they are both the same error (the local file is not found).
diff --git a/goodtables/inspector.py b/goodtables/inspector.py
index e17e464..8491ace 100644
--- a/goodtables/inspector.py
+++ b/goodtables/inspector.py
@@ -4,6 +4,12 @@ from __future__ import print_function
 from __future__ import absolute_import
 from __future__ import unicode_literals
 
+import os
+try:
+    from urllib.parse import urlparse
+except ImportError:
+    from urlparse import urlparse
+
 import six
 import datetime
 import operator
@@ -174,6 +180,9 @@ class Inspector(object):
             if schema is None:
                 checks = _filter_checks(checks, type='schema', inverse=True)
         except Exception as exception:
+            if _local_file_not_found(source):
+                message = "No such file or directory: '%s'" % source
+                exception = tabulator.exceptions.SourceError(message)
             fatal_error = True
             error = _compose_error_from_exception(exception)
             errors.append(error)
@@ -309,6 +318,11 @@ def _filter_checks(checks, type=None, context=None, inverse=False):
     return result
 
 
+def _local_file_not_found(source):
+    return urlparse(source).scheme == '' \
+           and not os.path.isfile(source)
+
+
 def _compose_error_from_exception(exception):
     code = 'source-error'
     message = str(exception)

Goodtables CLI should fail if received paths doesn't exist
For example:

```
$ goodtables foobar                                       
DATASET
=======
{'error-count': 1,
 'preset': 'nested',
 'table-count': 1,
 'time': 0.002,
 'valid': False}

TABLE [1]
=========
{'error-count': 1,
 'headers': [],
 'row-count': 0,
 'source': 'foobar',
 'time': 0.001,
 'valid': False}
---------
[-,-] [format-error] Format "None" is not supported
```

It should have failed with `[-,-] [io-error] [Errno 2] No such file or directory: 'foobar'`, as it already does if the file ends in `.csv`
diff --git a/tests/test_inspector.py b/tests/test_inspector.py
index e43c233..b180fd0 100644
--- a/tests/test_inspector.py
+++ b/tests/test_inspector.py
@@ -122,6 +122,13 @@ def test_inspector_catch_all_iter_exceptions(log):
     ]
 
 
+def test_inspector_missing_local_file_raises_source_error_issue_315(log):
+    inspector = Inspector()
+    report = inspector.inspect([{'source': 'invalid'}])
+    assert log(report) == [
+        (1, None, None, 'source-error'),
+    ]
+
 # Warnings
 
 def test_inspector_warnings_no():

pip install --upgrade -e .[develop,ods]
parse_log_pytest
requirements.txt
mock pyyaml pytest pytest-cov coverage
apt-get update apt-get install -y gcc
3.6
requirements/base.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
boto3==1.23.10
botocore==1.26.10
cached-property==1.5.2
certifi==2021.5.30
chardet==5.0.0
charset-normalizer==2.0.12
click==8.0.4
click-default-group==1.2.4
coverage==6.2
dataflows-tabulator==1.54.3
datapackage==1.15.4
distlib==0.3.9
docutils==0.18.1
et-xmlfile==1.1.0
ezodf==0.3.2
filelock==3.4.1
-e git+https://github.com/frictionlessdata/goodtables-py.git@037c7bf35c2dd7c14635c3e1d1b6ef2403c74f9e#egg=goodtables
greenlet==2.0.2
idna==3.10
ijson==3.3.0
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
isodate==0.6.1
jmespath==0.10.0
jsonlines==3.1.0
jsonpointer==2.3
jsonschema==3.2.0
linear-tsv==1.1.0
lxml==5.3.1
mccabe==0.7.0
mock==5.2.0
openpyxl==3.1.3
packaging==21.3
platformdirs==2.4.0
pluggy==1.0.0
py==1.11.0
pycodestyle==2.10.0
pydocstyle==6.3.0
pyflakes==3.0.1
pylama==7.7.1
pyparsing==3.1.4
pyrsistent==0.18.0
pytest==7.0.1
pytest-cov==4.0.0
python-dateutil==2.9.0.post0
PyYAML==6.0.1
requests==2.27.1
rfc3986==1.5.0
s3transfer==0.5.2
simpleeval==0.9.13
six==1.17.0
snowballstemmer==2.2.0
SQLAlchemy==1.4.54
statistics==1.0.3.5
tableschema==1.21.0
tabulator==1.53.5
toml==0.10.2
tomli==1.2.3
tox==3.28.0
typing_extensions==4.1.1
unicodecsv==0.14.1
urllib3==1.26.20
virtualenv==20.17.1
xlrd==2.0.1
zipp==3.6.0

name: goodtables-py
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - boto3==1.23.10
      - botocore==1.26.10
      - cached-property==1.5.2
      - chardet==5.0.0
      - charset-normalizer==2.0.12
      - click==8.0.4
      - click-default-group==1.2.4
      - coverage==6.2
      - dataflows-tabulator==1.54.3
      - datapackage==1.15.4
      - distlib==0.3.9
      - docutils==0.18.1
      - et-xmlfile==1.1.0
      - ezodf==0.3.2
      - filelock==3.4.1
      - greenlet==2.0.2
      - idna==3.10
      - ijson==3.3.0
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - isodate==0.6.1
      - jmespath==0.10.0
      - jsonlines==3.1.0
      - jsonpointer==2.3
      - jsonschema==3.2.0
      - linear-tsv==1.1.0
      - lxml==5.3.1
      - mccabe==0.7.0
      - mock==5.2.0
      - openpyxl==3.1.3
      - packaging==21.3
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - py==1.11.0
      - pycodestyle==2.10.0
      - pydocstyle==6.3.0
      - pyflakes==3.0.1
      - pylama==7.7.1
      - pyparsing==3.1.4
      - pyrsistent==0.18.0
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - python-dateutil==2.9.0.post0
      - pyyaml==6.0.1
      - requests==2.27.1
      - rfc3986==1.5.0
      - s3transfer==0.5.2
      - simpleeval==0.9.13
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sqlalchemy==1.4.54
      - statistics==1.0.3.5
      - tableschema==1.21.0
      - tabulator==1.53.5
      - toml==0.10.2
      - tomli==1.2.3
      - tox==3.28.0
      - typing-extensions==4.1.1
      - unicodecsv==0.14.1
      - urllib3==1.26.20
      - virtualenv==20.17.1
      - xlrd==2.0.1
      - zipp==3.6.0
prefix: /opt/conda/envs/goodtables-py

tests/test_inspector.py::test_inspector_missing_local_file_raises_source_error_issue_315
tests/test_inspector.py::test_inspector_table_invalid tests/test_inspector.py::test_inspector_table_invalid_row_limit tests/test_inspector.py::test_inspector_tables_invalid tests/test_inspector.py::test_inspector_catch_all_open_exceptions
tests/test_inspector.py::test_inspector_table_valid tests/test_inspector.py::test_inspector_table_invalid_error_limit tests/test_inspector.py::test_inspector_datapackage_valid[data/datapackages/valid/datapackage.json] tests/test_inspector.py::test_inspector_datapackage_valid[data/datapackages/valid.zip] tests/test_inspector.py::test_inspector_datapackage_invalid[data/datapackages/invalid/datapackage.json] tests/test_inspector.py::test_inspector_datapackage_invalid[data/datapackages/invalid.zip] tests/test_inspector.py::test_nested_presets_set_default_preset tests/test_inspector.py::test_inspector_catch_all_iter_exceptions tests/test_inspector.py::test_inspector_warnings_no tests/test_inspector.py::test_inspector_warnings_bad_datapackage_json tests/test_inspector.py::test_inspector_warnings_table_limit tests/test_inspector.py::test_inspector_warnings_row_limit tests/test_inspector.py::test_inspector_warnings_error_limit tests/test_inspector.py::test_inspector_warnings_table_and_row_limit tests/test_inspector.py::test_inspector_warnings_table_and_error_limit tests/test_inspector.py::test_inspector_empty_source tests/test_inspector.py::test_inspector_no_headers
goodtables/inspector.py
goodtables/inspector.py