From 1300301a52bba102fed8b08bdcb668d246973af5 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 11 May 2010 13:27:30 +0000 Subject: Fixed an issue in the reader, it was tokenizing. --- src/cachestorefiles.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/cachestorefiles.h') diff --git a/src/cachestorefiles.h b/src/cachestorefiles.h index 0416f8b..6a80765 100644 --- a/src/cachestorefiles.h +++ b/src/cachestorefiles.h @@ -77,9 +77,9 @@ namespace Bu obtype *pOb = __cacheStoreFilesLoad( fIn, key ); return pOb; } - catch(...) + catch( std::exception &e ) { - throw Bu::HashException("File-key not found."); + throw Bu::HashException( e.what() ); } } @@ -158,6 +158,9 @@ namespace Bu Bu::Formatter f( mb ); try { + Fmt fm; + fm.tokenize( false ); + f << fm; f >> tmp; } catch( Bu::ExceptionBase &e ) -- cgit v1.2.3