forked from railwayapp/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
14 lines (11 loc) · 659 Bytes
/
Copy pathmain.go
File metadata and controls
14 lines (11 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package errors
import "errors"
type RailwayError error
var (
UserConfigNotFound RailwayError = errors.New("Not logged in. Please run railway login.")
ProjectConfigNotFound RailwayError = errors.New("Not connected to a project. Run railway init to get started.")
ProjectNotFound RailwayError = errors.New("Project not found.")
ProjectCreateFailed RailwayError = errors.New("There was a problem creating the project")
ProductionTokenNotSet RailwayError = errors.New("RAILWAY_TOKEN environment variable not set")
CommandNotSpecified RailwayError = errors.New("Specify a command to run in side the railway environment. railway run <cmd>")
)