fix: add full path to settings

This commit is contained in:
Polianin Nikita 2024-05-28 07:20:21 +03:00
parent 966ab9bdda
commit 9bf9eabad7

View File

@ -20,7 +20,7 @@ public class SetupController(ISetupToken setupToken, IMaintenanceModeNotConfigur
if (!notConfigureService.IsMaintenanceMode)
throw new ControllerArgumentException(
"The token cannot be generated because the server has been configured. " +
$"If you need to restart the configuration, then delete the \"{GeneralConfig.FilePath}\" file and restart the application.");
$"If you need to restart the configuration, then delete the \"{PathBuilder.Combine(GeneralConfig.FilePath)}\" file and restart the application.");
var token = new byte[32];
RandomNumberGenerator.Create().GetBytes(token);