show error with --json [--rewrite|--search]
Merge pull request #78 from brettlangdon/json-warning

show error with --json [--rewrite|--search]