Added information on actions and flags to use the program when no arguments are supplied

This commit is contained in:
kdeng00
2019-10-26 10:09:22 -04:00
parent f4845d70ec
commit d7d980a4fd
4 changed files with 42 additions and 4 deletions
+6
View File
@@ -46,6 +46,12 @@ namespace Syncers
cpr::Header{{"authorization", auth},
});
if (r.status_code != (int)Result::OK) {
cout<<"something went wrong\n";
cout<<"status code: "<<r.status_code<<endl;
cout<<"message: "<<r.text<<endl;
return;
}
auto songData = nlohmann::json::parse(r.text);
ofstream writeData{};