Changeset View
Changeset View
Standalone View
Standalone View
src/util/error.cpp
// Copyright (c) 2010-2018 The Bitcoin Core developers | // Copyright (c) 2010-2018 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <util/error.h> | #include <util/error.h> | ||||
#include <tinyformat.h> | |||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/translation.h> | |||||
std::string TransactionErrorString(const TransactionError error) { | std::string TransactionErrorString(const TransactionError error) { | ||||
switch (error) { | switch (error) { | ||||
case TransactionError::OK: | case TransactionError::OK: | ||||
return "No error"; | return "No error"; | ||||
case TransactionError::MISSING_INPUTS: | case TransactionError::MISSING_INPUTS: | ||||
return "Missing inputs"; | return "Missing inputs"; | ||||
case TransactionError::ALREADY_IN_CHAIN: | case TransactionError::ALREADY_IN_CHAIN: | ||||
Show All 26 Lines |