make error calculator and msfem algo return errors