@@ -87,7 +87,7 @@ private void MainTab_Selected(object sender, TabControlEventArgs args) {
8787
8888 if ( configPage == ASFTab ) {
8989 MainTab . SelectedTab = ASFTab ;
90- Logging . LogGenericError ( "You can't remove global config!" ) ;
90+ Logging . LogGenericErrorWithoutStacktrace ( "You can't remove global config!" ) ;
9191 return ;
9292 }
9393
@@ -109,7 +109,7 @@ private void MainTab_Selected(object sender, TabControlEventArgs args) {
109109
110110 if ( configPage == ASFTab ) {
111111 MainTab . SelectedTab = ASFTab ;
112- Logging . LogGenericError ( "You can't rename global config!" ) ;
112+ Logging . LogGenericErrorWithoutStacktrace ( "You can't rename global config!" ) ;
113113 return ;
114114 }
115115
@@ -121,7 +121,7 @@ private void MainTab_Selected(object sender, TabControlEventArgs args) {
121121 }
122122
123123 if ( string . IsNullOrEmpty ( input ) ) {
124- Logging . LogGenericError ( "Your bot name is empty!" ) ;
124+ Logging . LogGenericErrorWithoutStacktrace ( "Your bot name is empty!" ) ;
125125 return ;
126126 }
127127
@@ -147,15 +147,15 @@ private void MainTab_Selected(object sender, TabControlEventArgs args) {
147147 }
148148
149149 if ( string . IsNullOrEmpty ( input ) ) {
150- Logging . LogGenericError ( "Your bot name is empty!" ) ;
150+ Logging . LogGenericErrorWithoutStacktrace ( "Your bot name is empty!" ) ;
151151 return ;
152152 }
153153
154154 // Get rid of any potential whitespaces in bot name
155155 input = Regex . Replace ( input , @"\s+" , "" ) ;
156156
157157 if ( ASFConfig . ASFConfigs . Select ( config => Path . GetFileNameWithoutExtension ( config . FilePath ) ) . Any ( fileNameWithoutExtension => ( fileNameWithoutExtension == null ) || fileNameWithoutExtension . Equals ( input ) ) ) {
158- Logging . LogGenericError ( "Bot with such name exists already!" ) ;
158+ Logging . LogGenericErrorWithoutStacktrace ( "Bot with such name exists already!" ) ;
159159 return ;
160160 }
161161
0 commit comments