@@ -1137,15 +1137,11 @@ public static void error(string message)
11371137 }
11381138
11391139 File . AppendAllText ( file , DateTime . Now + $ " > { message } " + Environment . NewLine ) ;
1140-
1141- Process . Start ( new ProcessStartInfo ( "cmd.exe" , $ "/c start cmd /C \" color b && title Error && echo { message } && timeout /t 5\" ")
1142- {
1143- CreateNoWindow = true ,
1144- RedirectStandardOutput = true ,
1145- RedirectStandardError = true ,
1146- UseShellExecute = false
1147- } ) ;
1148- TerminateProcess ( GetCurrentProcess ( ) , 1 ) ;
1140+
1141+ Console . Error . WriteLine ( "Error: " + message ) ;
1142+ Console . Error . WriteLine ( "Press any key to exit" ) ;
1143+ Console . ReadKey ( ) ;
1144+ Environment . Exit ( 0 ) ;
11491145 }
11501146
11511147 private static string req ( NameValueCollection post_data )
@@ -1214,6 +1210,7 @@ private static void sigCheck(string resp, WebHeaderCollection headers, string ty
12141210 // Try to parse the input string to a long Unix timestamp
12151211 if ( ! long . TryParse ( timestamp , out long unixTimestamp ) )
12161212 {
1213+ error ( "Failed to parse the timestamp from the server. Please ensure your device's date and time settings are correct." ) ;
12171214 TerminateProcess ( GetCurrentProcess ( ) , 1 ) ;
12181215 }
12191216
@@ -1229,6 +1226,7 @@ private static void sigCheck(string resp, WebHeaderCollection headers, string ty
12291226 // Check if the timestamp is within 20 seconds of the current time
12301227 if ( timeDifference . TotalSeconds > 20 )
12311228 {
1229+ error ( "Date/Time settings aren't synced on your device, please sync them to use the program" ) ;
12321230 TerminateProcess ( GetCurrentProcess ( ) , 1 ) ;
12331231 }
12341232
0 commit comments