Mercurial > hg > orthanc
comparison OrthancServer/OrthancInitialization.cpp @ 2071:27fd34970c52
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 14 Jul 2016 14:21:29 +0200 |
parents | fabf7820d1f1 |
children | bcbc9137a535 |
comparison
equal
deleted
inserted
replaced
2070:7e6afa0beaf6 | 2071:27fd34970c52 |
---|---|
583 int v = GetGlobalIntegerParameter(parameter, defaultValue); | 583 int v = GetGlobalIntegerParameter(parameter, defaultValue); |
584 | 584 |
585 if (v < 0) | 585 if (v < 0) |
586 { | 586 { |
587 LOG(ERROR) << "The configuration option \"" << parameter << "\" must be a positive integer"; | 587 LOG(ERROR) << "The configuration option \"" << parameter << "\" must be a positive integer"; |
588 throw OrthancException(ErrorCode_BadParameterType); | 588 throw OrthancException(ErrorCode_ParameterOutOfRange); |
589 } | 589 } |
590 else | 590 else |
591 { | 591 { |
592 return static_cast<unsigned int>(v); | 592 return static_cast<unsigned int>(v); |
593 } | 593 } |