Skip to content

Commit

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

auto error_handler = [](CshioriError err) {
auto error_handler = [](Cshiori::Error err) {
std::cerr << RED_OUTPUT("Error: " << to_ansi_colored_string(err)) << std::endl;
};
Cshiori shiori{argv[1], error_handler};
auto warning_handler = nullptr;//shioricaller does not need to handle warnings as it is only used for basic purposes

Cshiori shiori{
argv[1],
Cshiori::error_logger_type{
error_handler,
warning_handler
}
};

if(not shiori.All_OK())
return 1;

Expand Down

0 comments on commit 0ba003c

Please sign in to comment.