You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Andreas Welchlin (JIRA)" <ji...@apache.org> on 2014/12/20 14:47:13 UTC

[jira] [Created] (PROTON-785) pn_code is missing one error code

Andreas Welchlin created PROTON-785:
---------------------------------------

             Summary: pn_code is missing one error code
                 Key: PROTON-785
                 URL: https://issues.apache.org/jira/browse/PROTON-785
             Project: Qpid Proton
          Issue Type: Bug
          Components: proton-c
    Affects Versions: 0.8, 0.7
         Environment: Linux
            Reporter: Andreas Welchlin
            Priority: Trivial


In error.c there is one error code missing in function pn_code:

const char *pn_code(int code)
{
  switch (code)
  {
  case 0: return "<ok>";
  case PN_EOS: return "PN_EOS";
  case PN_ERR: return "PN_ERR";
  case PN_OVERFLOW: return "PN_OVERFLOW";
  case PN_UNDERFLOW: return "PN_UNDERFLOW";
  case PN_STATE_ERR: return "PN_STATE_ERR";
  case PN_ARG_ERR: return "PN_ARG_ERR";
  case PN_TIMEOUT: return "PN_TIMEOUT";
  case PN_INTR: return "PN_INTR";
  default: return "<unknown>";
  }
}

There should also be:
  case PN_INPROGRESS: return "PN_INPROGRESS";




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)