Commit 668d6611 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

PsimagLite::atoi better error report

parent e0fd28fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ DISCLOSED WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.
#include "Matrix.h"
#include "Stack.h"
#include "Map.h"
#include "H5Cpp.h"
#include <H5Cpp.h>
#include <typeinfo>
#include "IoNgSerializer.h"
#include "AllocatorCpu.h"
+1 −1
Original line number Diff line number Diff line
#ifndef IONGSERIALIZER_H
#define IONGSERIALIZER_H
#include "H5Cpp.h"
#include <H5Cpp.h>
#include "../Vector.h"
#include "../TypeToString.h"
#include "TypeToH5.h"
+1 −1
Original line number Diff line number Diff line
#ifndef PSI_TYPETOH5_H
#define PSI_TYPETOH5_H
#include "H5Cpp.h"
#include <H5Cpp.h>
#include "../AllocatorCpu.h"

namespace PsimagLite {
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ int atoi(String str)
	for (SizeType i = 0; i < n; ++i) {
		if (isdigit(str[i])) continue;
		if (str[i] == '-' || str[i] == '+') continue;
		throw RuntimeError("atoi received a non-digit\n");
		throw RuntimeError("atoi received a non-digit: " + str + "\n");
	}

	return std::atoi(str.c_str());