Skip to content

Commit

Permalink
Update err to CshioriError
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Feb 26, 2023
1 parent c2dbaff commit 2387522
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/my-gists
8 changes: 3 additions & 5 deletions src/shioricaller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ int wmain(int argc, wchar_t* argv[]){
return 0;
}

auto error_handler = [](const char* str) {
std::cerr << RED_OUTPUT("Error: " << str) << std::endl;
auto error_handler = [](CshioriError err) {
std::cerr << RED_OUTPUT("Error: " << to_ansi_colored_string(err)) << std::endl;
};
Cshiori shiori{argv[1], error_handler};
if(not shiori.All_OK()) {
std::cerr << RED_TEXT("Error: something fucked up.") << std::endl;
if(not shiori.All_OK())
return 1;
}

std::string req_buf,req_line;
while(1) {
Expand Down

0 comments on commit 2387522

Please sign in to comment.