Commit edeef0fd authored by Vlad Shakhuro's avatar Vlad Shakhuro

fprintf(stderr, ...) -> cerr << ...

parent ab6a2c65
...@@ -14,6 +14,10 @@ using std::getline; ...@@ -14,6 +14,10 @@ using std::getline;
#include <sstream> #include <sstream>
using std::stringstream; using std::stringstream;
#include <iostream>
using std::cerr;
using std::endl;
#include <opencv2/core.hpp> #include <opencv2/core.hpp>
using cv::Rect; using cv::Rect;
...@@ -185,10 +189,10 @@ int main(int argc, char *argv[]) ...@@ -185,10 +189,10 @@ int main(int argc, char *argv[])
} }
catch( const char *err ) catch( const char *err )
{ {
fprintf(stderr, "%s", err); cerr << err << endl;
} }
catch( ... ) catch( ... )
{ {
fprintf(stderr, "Unknown error\n"); cerr << "Unknown error\n" << endl;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment