adds container to errors