Error message is now displayed if CreamAPI cannot be downloaded.

Fixed incorrect logging syntax.
This commit is contained in:
Jeddunk 2021-02-14 15:02:02 +01:00
parent 178b7427b8
commit 8ade832b42
7 changed files with 59 additions and 43 deletions

View file

@ -69,11 +69,6 @@ namespace auto_creamapi.ViewModels
Status = "Ready.";
}
public override Task Initialize()
{
return base.Initialize();
}
// // COMMANDS // //
public IMvxCommand OpenFileCommand => new MvxAsyncCommand(OpenFile);
@ -346,7 +341,7 @@ namespace auto_creamapi.ViewModels
else
{
Status = $"Could not get DLC for AppID {AppId}";
MyLogger.Log.Error($"GetListOfDlc: Invalid AppID {AppId}");
MyLogger.Log.Error("GetListOfDlc: Invalid AppID {AppId}", AppId);
}
}
@ -397,7 +392,7 @@ namespace auto_creamapi.ViewModels
}
else
{
MyLogger.Log.Error($"OpenURL: Invalid AppID {AppId}");
MyLogger.Log.Error("OpenURL: Invalid AppID {AppId}", AppId);
Status = $"Could not open URL: Invalid AppID {AppId}";
}
}