14 references to Fail
Microsoft.DotNet.HotReload.Watch (14)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\BrowserToolsBuildOutputs.cs (14)
103
throw
Fail
("the public and private key documents describe different keys");
113
throw
Fail
("the private key could not be imported");
121
throw
Fail
("the private key does not match the public key the application pinned");
150
throw
Fail
($"'{Path.GetFileName(_privateKeyPath)}' does not contain the private key components");
175
throw
Fail
($"'{Path.GetFileName(path)}' was not produced by the build");
179
throw
Fail
($"'{Path.GetFileName(path)}' was not produced by the build");
183
throw
Fail
($"'{Path.GetFileName(path)}' could not be read ({e.GetType().Name})");
192
throw
Fail
($"'{Path.GetFileName(path)}' is not a valid JSON document");
202
throw
Fail
($"'{name}' is not a JSON object");
210
throw
Fail
($"'{name}' does not have the supported document version {SupportedKeyDocumentVersion}");
217
throw
Fail
($"'{name}' does not use the supported key algorithm");
224
throw
Fail
($"'{name}' does not use the expected key format '{expectedFormat}'");
234
throw
Fail
($"'{Path.GetFileName(path)}' does not contain '{propertyName}'");
243
throw
Fail
($"'{propertyName}' in '{Path.GetFileName(path)}' is not base64");