The message exit status 1 error compiling seems to indicate an issue compiling your arduino code.

Are you using the Onion Arduino Library, and if so, have you downloaded and installed it?
Note that for Arduino Dock 2, there's no need to use the Onion Library or the Onion object. Try getting rid of that and trying again.