Expose errors as actual Error objects instead of Strings