Throw Error instead of just strings