mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 05:33:21 +08:00
Fix audio in video check crashing on unexpected failures
This commit is contained in:
parent
c575cce10c
commit
20c760835a
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using osu.Framework.Logging;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.IO.FileAbstraction;
|
using osu.Game.IO.FileAbstraction;
|
||||||
using osu.Game.Rulesets.Edit.Checks.Components;
|
using osu.Game.Rulesets.Edit.Checks.Components;
|
||||||
@ -75,6 +77,11 @@ namespace osu.Game.Rulesets.Edit.Checks
|
|||||||
{
|
{
|
||||||
issue = new IssueTemplateFileError(this).Create(filename, "Unsupported format");
|
issue = new IssueTemplateFileError(this).Create(filename, "Unsupported format");
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
issue = new IssueTemplateFileError(this).Create(filename, "Internal failure - see logs for more info");
|
||||||
|
Logger.Log($"Failed when running {nameof(CheckAudioInVideo)}: {ex}");
|
||||||
|
}
|
||||||
|
|
||||||
yield return issue;
|
yield return issue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user