Throw exported error on convert failure

Just a small fix.