Skip to content

Commit

Permalink
helpful error messages when lein or pod are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotz committed Aug 26, 2015
1 parent b2eda4b commit fc28994
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,17 @@ init = (projName) ->
log 'Changes you make via the REPL or by changing your .cljs files should appear live.', 'yellow'
log 'Try this command as an example:', 'yellow'
log '(swap! app-state assoc :text "Hello Native World")', 'inverse'
log ''


catch e
logErr e.message
if e.message.match /type\:.+lein/i
logErr 'Leiningen is required (http://leiningen.org/)'

else if e.message.match /type\:.+pod/i
logErr 'CocoaPods is required (https://cocoapods.org/)'

else
logErr e.message

process.exit 1

0 comments on commit fc28994

Please sign in to comment.