mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
2da5244e83
This allows GDB to print values, but also allows us to use them in 'case' statements. This wasn't allowed before because they're not constant terms. This also made it clear there's a clash between two error codes, so move one. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Changed: JSON-RPC: Error code from bcli plugin changed from 400 to 500.
23 lines
530 B
C
23 lines
530 B
C
#ifndef LIGHTNING_COMMON_ERRCODE_H
|
|
#define LIGHTNING_COMMON_ERRCODE_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
// Setup errors
|
|
#define EXITCODE_SUBDAEMON_FAIL 10
|
|
#define EXITCODE_PIDFILE_LOCK 11
|
|
|
|
// HSM errors code
|
|
#define EXITCODE_HSM_GENERIC_ERROR 20
|
|
#define EXITCODE_HSM_ERROR_IS_ENCRYPT 21
|
|
#define EXITCODE_HSM_BAD_PASSWORD 22
|
|
#define EXITCODE_HSM_PASSWORD_INPUT_ERR 23
|
|
#define EXITCODE_ERROR_HSM_FILE 24
|
|
|
|
// Wallet error
|
|
#define EXITCODE_WALLET_DB_MISMATCH 30
|
|
|
|
#endif /* LIGHTNING_COMMON_ERRCODE_H */
|