juju-run: updated to use errors package