mirror of https://github.com/ppy/osu
Limit macOS specific log output to macOS platforms specifically
This commit is contained in:
parent
a98aac3bf2
commit
b6ae0ebb6f
|
@ -8,6 +8,7 @@
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using osu.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Development;
|
||||
using osu.Framework.Graphics;
|
||||
|
@ -162,7 +163,7 @@ private void beginMigration()
|
|||
log("Migration failed!");
|
||||
Logger.Log(t.Exception.ToString(), LoggingTarget.Database);
|
||||
|
||||
if (t.Exception.Flatten().InnerException is TypeInitializationException)
|
||||
if (RuntimeInfo.OS == RuntimeInfo.Platform.macOS && t.Exception.Flatten().InnerException is TypeInitializationException)
|
||||
{
|
||||
// Not guaranteed to be the only cause of exception, but let's roll with it for now.
|
||||
log("Please download and run the intel version of osu! once\nto allow data migration to complete!");
|
||||
|
|
Loading…
Reference in New Issue