Line data Source code
1 : #include "fd_funk_base.h" 2 : 3 : char const * 4 27 : fd_funk_strerror( int err ) { 5 27 : switch( err ) { 6 3 : case FD_FUNK_SUCCESS: return "success"; 7 3 : case FD_FUNK_ERR_INVAL: return "inval"; 8 3 : case FD_FUNK_ERR_XID: return "xid"; 9 3 : case FD_FUNK_ERR_KEY: return "key"; 10 3 : case FD_FUNK_ERR_FROZEN: return "frozen"; 11 3 : case FD_FUNK_ERR_TXN: return "txn"; 12 3 : case FD_FUNK_ERR_REC: return "rec"; 13 3 : case FD_FUNK_ERR_MEM: return "mem"; 14 0 : case FD_FUNK_ERR_SYS: return "sys"; 15 3 : default: break; 16 27 : } 17 3 : return "unknown"; 18 27 : }