search and ai stabilization work, localization stablized.
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Collections.Immutable;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using static StellaOps.Localization.T;
|
||||
|
||||
namespace StellaOps.Evidence.Pack;
|
||||
|
||||
@@ -157,7 +158,7 @@ internal sealed class EvidenceResolver : IEvidenceResolver
|
||||
// Expected format: stella://type/path
|
||||
if (!uri.StartsWith("stella://", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
throw new ArgumentException($"Invalid evidence URI format: {uri}. Expected stella://type/path");
|
||||
throw new ArgumentException(_t("common.evidence.invalid_uri_format", uri));
|
||||
}
|
||||
|
||||
var withoutScheme = uri[9..]; // Remove "stella://"
|
||||
@@ -165,7 +166,7 @@ internal sealed class EvidenceResolver : IEvidenceResolver
|
||||
|
||||
if (slashIndex <= 0)
|
||||
{
|
||||
throw new ArgumentException($"Invalid evidence URI format: {uri}. Missing path.");
|
||||
throw new ArgumentException(_t("common.evidence.invalid_uri_missing_path", uri));
|
||||
}
|
||||
|
||||
var type = withoutScheme[..slashIndex];
|
||||
|
||||
Reference in New Issue
Block a user