[SPA] Fixes the error message on timeouts (#15220)
When the angular CLI middleware takes too long to start, it produces an error message with an incorrect value, as it uses `timeSpan.Seconds` instead of `timeSpan.TotalSeconds`
This commit is contained in:
parent
4303bbe786
commit
1189a2c294
|
|
@ -57,7 +57,7 @@ namespace Microsoft.AspNetCore.SpaServices.AngularCli
|
|||
var timeout = spaBuilder.Options.StartupTimeout;
|
||||
return targetUriTask.WithTimeout(timeout,
|
||||
$"The Angular CLI process did not start listening for requests " +
|
||||
$"within the timeout period of {timeout.Seconds} seconds. " +
|
||||
$"within the timeout period of {timeout.TotalSeconds} seconds. " +
|
||||
$"Check the log output for error information.");
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue