comparison Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp @ 139:7e53735eeacb

sync Orthanc
author Alain Mazy <am@osimis.io>
date Tue, 19 Dec 2023 11:52:51 +0100
parents 11530895e0b2
children 6673a963ddf0
comparison
equal deleted inserted replaced
138:f448e8626f1a 139:7e53735eeacb
2605 2605
2606 int priority = 0; 2606 int priority = 0;
2607 2607
2608 if (body.isMember(KEY_PRIORITY)) 2608 if (body.isMember(KEY_PRIORITY))
2609 { 2609 {
2610 if (body[KEY_PRIORITY].type() != Json::booleanValue) 2610 if (body[KEY_PRIORITY].type() != Json::intValue)
2611 { 2611 {
2612 #if HAS_ORTHANC_EXCEPTION == 1 2612 #if HAS_ORTHANC_EXCEPTION == 1
2613 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat, 2613 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat,
2614 "Option \"" + std::string(KEY_PRIORITY) + 2614 "Option \"" + std::string(KEY_PRIORITY) +
2615 "\" must be an integer"); 2615 "\" must be an integer");