diff --git a/src/my-gists b/src/my-gists index 643b8f4..d82e623 160000 --- a/src/my-gists +++ b/src/my-gists @@ -1 +1 @@ -Subproject commit 643b8f434e33f46432b75d9533390bed5b8e0147 +Subproject commit d82e623e25be569df151d7b9aac06947a58b6099 diff --git a/src/shioricaller.cpp b/src/shioricaller.cpp index 35afa28..66752f5 100644 --- a/src/shioricaller.cpp +++ b/src/shioricaller.cpp @@ -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) {