X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Floader.cpp;h=67668cdea1f5bc52b76c7c02c401fda501d9531e;hb=a02c84384a101c0dec48b6aa2dee53bac4bbd034;hp=0a9f68f249a8d56fe76ab5ba36f5c5bfe76a57e8;hpb=92644bf892df1220c8df67e1fc3da85dd02c53c5;p=libs%2Fdatafile.git diff --git a/source/loader.cpp b/source/loader.cpp index 0a9f68f..67668cd 100644 --- a/source/loader.cpp +++ b/source/loader.cpp @@ -51,7 +51,7 @@ void Loader::load_statement(const Statement &st) cur_st=&st; ActionMap::iterator j=actions.find(st.keyword); if(j==actions.end()) - throw KeyError(st.get_location()+": Unknown keyword '"+st.keyword+"'"); + throw KeyError(st.get_location()+": Unknown keyword", st.keyword); if(j->second) j->second->execute(*this, st); cur_st=0;