Error message. It isn't very helpful.

Arduino: 1.8.2 (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 2224 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 50 bytes (2%) of dynamic memory, leaving 1998 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Soooooo...

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Did you enable verbose output and re-compile? There will be more information available. The code compiles but fails to upload. Are you sure that you have the right board and serial port in Tools?

The advice to use verbose output is good but the message is wrong. You need to enable verbose output during upload, not compilation. Verbose output during compilation is not useful in this case and will actually just clutter up the console window. I've been meaning to report this bug to the Arduino developers but couldn't reproduce it when I last tried.

Please post the verbose upload output.

GustavsGegeris wrote (in part):

An error occurred while uploading the sketch

This seems to be clear, but could be more helpful by identifying the sketch, identifying the error, and perhaps identifying the port and board in use.