Atom . won't open it

I messed up something while setting up the working environment for the projects and can’t figure out how to fix it. I used to be able to open atom from terminal on mac but my rspec didn’t work. After fixing that, now I’m unable to open atom from the terminal. I get the error: FSPathMakeRef(/Applications/ failed with error -36
for which I can’t find the answer on the Internet.
Any help/hints appreciated.