GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add error message to Websocket `onerror` handler by The-EDev · Pull Request #476 · CrowCpp/Crow

Conversation

@The-EDev

@The-EDev The-EDev commented Jun 20, 2022

Copy link
Copy Markdown
Member

Closes #454

also snuck in, fix for GCC warning about comparing pointer addition against nullptr (which was a legitimate error in the code)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
The-EDev added 3 commits June 21, 2022 02:23
@The-EDev
added message string to websocket error handler
6f832f8
@The-EDev
fixed error in json float dump (where a pointer was checked against n…
ab2a132
…ullptr instead of '\0')
@The-EDev
added missing & signs in guide
ecc06fa
@The-EDev
The-EDev requested review from luca-schlecker and mrozigor June 20, 2022 23:32
@crow-clang-format

crow-clang-format Bot commented Jun 20, 2022

Copy link
Copy Markdown
--- include/crow/json.h	(before formatting)
+++ include/crow/json.h	(after formatting)
@@ -1852,9 +1852,9 @@
                                     case start: // Loop and lookahead until a decimal point is found
                                         if (ch == '.')
                                         {
-                                            char fch  = *(p + 1);
+                                            char fch = *(p + 1);
                                             // if the first character is 0, leave it be (this is so that "1.00000" becomes "1.0" and not "1.")
-                                            if ( fch != '\0' && fch == '0') p++;
+                                            if (fch != '\0' && fch == '0') p++;
                                             f_state = decp;
                                         }
                                         p++;
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@The-EDev
formatting
454dabd
mrozigor
mrozigor approved these changes Jun 21, 2022
View reviewed changes
@The-EDev
The-EDev merged commit 8d7e53d into master Jun 21, 2022
@The-EDev
The-EDev deleted the ws-error-reason branch June 21, 2022 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mrozigor mrozigor mrozigor approved these changes
@luca-schlecker luca-schlecker Awaiting requested review from luca-schlecker

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Websockets: error-handler could include reason

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@The-EDev @mrozigor
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.