Handle errors from metarepo