Mercurial > hg > orthanc
comparison Core/Lua/LuaContext.cpp @ 1596:f2e3d030ea59
BadJson error code
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Aug 2015 15:36:43 +0200 |
parents | 9ea3d082b064 |
children | 31f4adefb88f |
comparison
equal
deleted
inserted
replaced
1595:e1e54a73ba8b | 1596:f2e3d030ea59 |
---|---|
555 ExecuteInternal(&s, command); | 555 ExecuteInternal(&s, command); |
556 | 556 |
557 Json::Reader reader; | 557 Json::Reader reader; |
558 if (!reader.parse(s, output)) | 558 if (!reader.parse(s, output)) |
559 { | 559 { |
560 throw OrthancException(ErrorCode_BadFileFormat); | 560 throw OrthancException(ErrorCode_BadJson); |
561 } | 561 } |
562 } | 562 } |
563 | 563 |
564 | 564 |
565 void LuaContext::RegisterFunction(const char* name, | 565 void LuaContext::RegisterFunction(const char* name, |