I was making a code for turning on dc motors and when I was uploading this showed up:
Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Uno"
Sketch uses 1092 bytes (3%) of program storage space. Maximum is 32256 bytes. Global variables use 13 bytes (0%) of dynamic memory, leaving 2035 bytes for local variables. Maximum is 2048 bytes. avrdude: ser_open(): can't set com-state for "\.\COM4" An error occurred while uploading the sketch
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.