You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
809 B
22 lines
809 B
using YamlDotNet.Core;
|
|
|
|
namespace Recyclarr.TrashLib.Config.Parsing;
|
|
|
|
public static class ConfigDeprecations
|
|
{
|
|
public static string? GetContextualErrorFromException(YamlException e)
|
|
{
|
|
if (e.Message.Contains("Expected 'MappingStart', got 'SequenceStart'"))
|
|
{
|
|
return "Found array-style list of instances instead of named-style. " +
|
|
"Array-style lists of Sonarr/Radarr instances are not supported. " +
|
|
"See: https://recyclarr.dev/wiki/upgrade-guide/v5.0/#instances-must-now-be-named";
|
|
}
|
|
|
|
// "DEPRECATION: Support for using `reset_unmatched_scores` under `custom_formats.quality_profiles` " +
|
|
// "will be removed in a future release. Move it to the top level `quality_profiles` instead"
|
|
|
|
return null;
|
|
}
|
|
}
|