throw Error instead of String

fix for issue #43