Skip to content

Conversation

gjasny
Copy link
Contributor

@gjasny gjasny commented Jul 17, 2021

Fixes: #978

@gjasny gjasny force-pushed the error-to-string branch from 8963706 to d2fc80c Compare July 17, 2021 14:26
httplib.h Outdated
case Error::UnsupportedMultipartBoundaryChars:
return "UnsupportedMultipartBoundaryChars";
case Error::Compression: return "Compression";
case Error::Unknown: break;
Copy link
Owner

@yhirose yhirose Jul 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you adjust it like this?

  case Error::Unknown:   return "Unknown";
  default: break;
  }

  return "Invalid";
}

@yhirose
Copy link
Owner

yhirose commented Jul 17, 2021

@gjasny, please see my review. Also it seems like the unit tests on GitHub Actions failed...

@gjasny gjasny force-pushed the error-to-string branch from d2fc80c to 8773f4d Compare July 19, 2021 06:56
@yhirose
Copy link
Owner

yhirose commented Jul 20, 2021

Thanks for the corrections!

@yhirose yhirose merged commit ea2f69a into yhirose:master Jul 20, 2021
ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this pull request May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a mapping function from Error to String
2 participants