linear_solver_test: output exception message