Problems Uploading to Arduino Micro [can't open device "unknown"]

Hi

Been trying to get my Arduino micro working with Mac OSX 10.11.3 for a little while now, I was having trouble getting it to pick up the serial port. Now that I've got that figured out I'm running into an issue I can't find an answer for. Whenever I try and upload to the board I get the error meassage:

avrdude: ser_open(): can't open device "unknown": No such file or directory
avrdude: ser_send(): write error: Bad file descriptor

I have the correct board selected and am using port /dev/cu.usbmodem641

Using Arduino IDE 1.6.9

Solved! Turns out i had modified some of the program files in a failed attempt to fix the previously mentioned serial port problem. Just changed everything back and it uploads fine now.