Wrap caught "Error" in an `Error`.

Use `toString` check AND `instanceof` check.
Merge pull request #3 from joneshf/master

Use `toString` check rather than `instanceof` check.