expose the wrapped Error for use in tests

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>