Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Provide compiler error when not in verbose #126

Open
orta opened this issue Sep 4, 2017 · 1 comment
Open

Provide compiler error when not in verbose #126

orta opened this issue Sep 4, 2017 · 1 comment

Comments

@orta
Copy link
Collaborator

orta commented Sep 4, 2017

To get any useful information (which you need to continue) with a project, I have to re-run with --verbose

 ~/d/p/o/s/a/Marathon $  marathon run danger/danger-swift 
πŸ’₯  Failed to compile script

Running with --verbose:

 ! ξ‚° ~/d/p/o/s/a/Marathon $  marathon run danger/danger-swift --verbose
πŸƒ  Cloning https://github.com/danger/danger-swift.git...
   $ cd "/Users/orta/.marathon/Scripts/Temp/https:--github.com-danger-danger-swift.git/" && git clone https://github.com/danger/danger-swift.git clone -q

   $ cd "/Users/orta/.marathon/Scripts/Temp/https:--github.com-danger-danger-swift.git/clone/" && /usr/bin/env xcrun --sdk macosx swift build -C /Users/orta/.marathon/Scripts/Temp/https:--github.com-danger-danger-swift.git/clone/ --enable-prefetching
   swift-build: error: Package requires minimum Swift tools version 4.0.0. Current Swift tools version is 3.1.0
πŸ’₯  Failed to compile script

Ideally the swift-build: error: Package requires minimum Swift tools version 4.0.0. Current Swift tools version is 3.1.0 would show without running verbose

@JohnSundell
Copy link
Owner

JohnSundell commented Sep 4, 2017

Totally agree πŸ‘ just like how we bubble up standard build errors (even in non-verbose mode) we should do the same for SPM errors. Especially for tools version, since that's a quite common error to encounter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants