Log copy error message and stack separately

This commit is contained in:
Kevin Sawicki
2015-11-03 13:18:03 -08:00
parent 85a1471138
commit 0e9562de5d

View File

@@ -66,7 +66,8 @@ setupAtomHome = ({setPortable}) ->
try
AtomPortable.setPortable(atomHome)
catch error
console.log("Failed copying portable directory: #{atomHome} to #{AtomPortable.getPortableAtomHomePath()}. #{error.message} #{error.stack}")
console.log("Failed copying portable directory: '#{atomHome}' to '#{AtomPortable.getPortableAtomHomePath()}'")
console.log("#{error.message} #{error.stack}")
if AtomPortable.isPortableInstall(process.platform, process.env.ATOM_HOME, atomHome)
atomHome = AtomPortable.getPortableAtomHomePath()