Skip to content

Commit

Permalink
Improve the messaging for the version command (#377)
Browse files Browse the repository at this point in the history
* Edit framework and note for version command

* Edit spelling mistake
  • Loading branch information
BennyDeBock authored Feb 28, 2022
1 parent 3526af2 commit 8302c18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/VaporToolbox/Toolbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ final class Toolbox: CommandGroup {
context.console.output(key: "framework", value: vapor.state.version)
} else {
context.console.output("\("note:", style: .warning) this Swift project does not depend on Vapor.")
context.console.output(key: "framework", value: "not found")
context.console.output(key: "framework", value: "Vapor framework for this project: this Swift project does not depend on Vapor. Please ensure you are in a Vapor project directory. If you are, ensure you have built the project with `swift build`. You can create a new project with `vapor new MyProject`")
}
} catch {
context.console.output("\("note:", style: .warning) no Package.resolved file was found.")
context.console.output(key: "framework", value: "not found")
context.console.output("\("note:", style: .warning) no Package.resolved file was found. Possibly not currently in a Swift package directory")
context.console.output(key: "framework", value: "Vapor framework for this project: no Package.resolved file found. Please ensure you are in a Vapor project directory. If you are, ensure you have built the project with `swift build`. You can create a new project with `vapor new MyProject`")
}
}

Expand Down

0 comments on commit 8302c18

Please sign in to comment.