119 |
|
{ |
120 |
|
error = "The argument -file must be followed by a filename."; |
121 |
|
|
122 |
+ |
cerr << program << ": " << error << "\n"; |
123 |
|
#ifdef _WIN32 |
124 |
|
MessageBox(NULL, error.c_str(), "Bad Arguments", MB_ICONERROR); |
125 |
|
#else |
132 |
|
{ |
133 |
|
error = "The argument " + arg + " is not a valid argument."; |
134 |
|
|
135 |
+ |
cerr << program << ": " << error << "\n"; |
136 |
|
#ifdef _WIN32 |
137 |
|
MessageBox(NULL, error.c_str(), "Unknown Arguments", MB_ICONWARNING |
138 |
|
); |
153 |
|
{ |
154 |
|
error = "Could not open " + file + "."; |
155 |
|
|
156 |
+ |
cerr << program << ": " << error << "\n"; |
157 |
|
#ifdef _WIN32 |
158 |
|
MessageBox(NULL, error.c_str(), "Bad File", MB_ICONERROR); |
159 |
|
#else |