[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:
Javier Calvarro Nelson 2019-10-22 12:04:22 +02:00 committed by GitHub
parent 4303bbe786
commit 1189a2c294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.");
});
}