File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,20 @@ def send_to_server(data):
3939 print ("✓ New analysis sent to server" )
4040 return True
4141 else :
42- print (f"⚠ Server responded with status { response .status_code } " )
42+ print (f"⚠ Server responded with status { response .status_code } " , file = sys . stderr )
4343 return False
4444
4545 except requests .exceptions .ConnectionError :
46- print ("⚠ Could not connect to server - make sure it's running on localhost:3000" )
46+ print ("⚠ Could not connect to server - make sure it's running on localhost:3000" , file = sys . stderr )
4747 return False
4848 except requests .exceptions .Timeout :
49- print ("⚠ Server request timed out" )
49+ print ("⚠ Server request timed out" , file = sys . stderr )
5050 return False
5151 except Exception as e :
52- print (f"⚠ Error sending to server: { e } " )
52+ print (f"⚠ Error sending to server: { e } " , file = sys . stderr )
5353 return False
5454
55+
5556def analyze_command (file , all , json_output , LANG_FILE ):
5657 """
5758 Analyze the given file.
You can’t perform that action at this time.
0 commit comments