Fix old except(..) to THROW_ERROR_EXCEPTION(..)

bcn-Nan-2.0
Harald Wolff 2017-09-11 12:52:07 +02:00
parent 2bd97d53f6
commit 0b72986783
1 changed files with 2 additions and 2 deletions

View File

@ -245,10 +245,10 @@ void construct_block_blob_fa(const Nan::FunctionCallbackInfo<v8::Value>& info) {
block parent_block;
b.parent_block.nonce = nonce;
if (!construct_parent_block(b, parent_block))
return except("Failed to construct parent block");
return THROW_ERROR_EXCEPTION("Failed to construct parent block");
if (!mergeBlocks(parent_block, b, std::vector<crypto::hash>()))
return except("Failed to postprocess mining block");
return THROW_ERROR_EXCEPTION("Failed to postprocess mining block");
}
if (!block_to_blob(b, output))