comparison OrthancServer/LuaScripting.cpp @ 2955:bbfd95a0c429

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Dec 2018 14:59:23 +0100
parents f395460af74d
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2954:d924f9bb61cc 2955:bbfd95a0c429
470 { 470 {
471 return lock.AddStorePeerOperation(peer); 471 return lock.AddStorePeerOperation(peer);
472 } 472 }
473 else 473 else
474 { 474 {
475 LOG(ERROR) << "No peer with symbolic name: " << name; 475 throw OrthancException(ErrorCode_UnknownResource,
476 throw OrthancException(ErrorCode_UnknownResource); 476 "No peer with symbolic name: " + name);
477 } 477 }
478 } 478 }
479 479
480 if (operation == "modify") 480 if (operation == "modify")
481 { 481 {