{"modulePath":"github.com/railwayapp/cli","version":"v1.8.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Types\n\n```go\ntype RailwayError error\n```\n\n```go\nvar (\n\tUserConfigNotFound                  RailwayError = fmt.Errorf(\"%s\\nRun %s\", ui.RedText(\"Not logged in.\"), ui.Bold(\"railway login\"))\n\tProjectConfigNotFound               RailwayError = fmt.Errorf(\"%s. Tip: If you haven't, do railway login\\nOtherwise, run %s to get plugged into a new project, or %s to get plugged into an existing project.\", ui.RedText(\"Project not found.\"), ui.Bold(\"railway init\"), ui.Bold(\"railway link\"))\n\tProjectTokenNotFound                RailwayError = fmt.Errorf(\"%s\\n\", ui.RedText(\"Project token not found\"))\n\tProblemFetchingProjects             RailwayError = fmt.Errorf(\"%s\\nOne of our trains probably derailed!\", ui.RedText(\"There was a problem fetching your projects.\"))\n\tProblemFetchingWritableGithubScopes RailwayError = fmt.Errorf(\"%s\\nOne of our trains probably derailed!\", ui.RedText(\"There was a problem fetching GitHub metadata.\"))\n\tProjectCreateFailed                 RailwayError = fmt.Errorf(\"%s\\nOne of our trains probably derailed!\", ui.RedText(\"There was a problem creating the project.\"))\n\tProjectCreateFromTemplateFailed     RailwayError = fmt.Errorf(\"%s\\nOne of our trains probably derailed!\", ui.RedText(\"There was a problem creating the project from template.\"))\n\tProductionTokenNotSet               RailwayError = fmt.Errorf(\"%s\\nRun %s and head under `tokens` section. You can generate tokens to access Railway environment variables. Set that token in your environment as `RAILWAY_TOKEN=\u003cinsert token\u003e` and you're all aboard!\", ui.RedText(\"RAILWAY_TOKEN environment variable not set.\"), ui.Bold(\"railway open\"))\n\tEnvironmentNotSet                   RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"No active environment found. Please select one\"))\n\tEnvironmentNotFound                 RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"Environment does not exist on project. Specify an existing environment\"))\n\tNoGitHubScopesFound                 RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"No GitHub organizations found. Please link your GitHub account to Railway and try again.\"))\n\tCommandNotSpecified                 RailwayError = fmt.Errorf(\"%s\\nRun %s\", ui.RedText(\"Specify a command to run inside the railway environment. Not providing a command will build and run the Dockerfile in the current directory.\"), ui.Bold(\"railway run [cmd]\"))\n\tLoginFailed                         RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"Login failed\"))\n\tLoginTimeout                        RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"Login timeout\"))\n\tPluginAlreadyExists                 RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"Plugin already exists\"))\n\tPluginNotSpecified                  RailwayError = fmt.Errorf(\"%s\\nRun %s\", ui.RedText(\"Specify a plugin to create.\"), ui.Bold(\"railway add \u003cplugin\u003e\"))\n\tPluginCreateFailed                  RailwayError = fmt.Errorf(\"%s\\nUhh Ohh! One of our trains derailed.\", ui.RedText(\"There was a problem creating the plugin.\"))\n\tPluginGetFailed                     RailwayError = fmt.Errorf(\"%s\\nUhh Ohh! One of our trains derailed.\", ui.RedText(\"There was a problem getting plugins available for creation.\"))\n\tTelemetryFailed                     RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"One of our trains derailed. Any chance you can report this error on our Discord (https://railway.app/help)?\"))\n\tWorkflowFailed                      RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"There was a problem deploying the project. Any chance you can report this error on our Discord (https://railway.app/help)?\"))\n\tNoDeploymentsFound                  RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"No Deployments Found!\"))\n\tDeploymentFetchingFailed            RailwayError = fmt.Errorf(\"%s\", \"Failed to fetch deployments\")\n\tCreateEnvironmentFailed             RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"Creating environment failed!\"))\n\tServiceNotFound                     RailwayError = fmt.Errorf(\"%s\", ui.RedText(\"Service not found in project\"))\n)\n```\n\n","path":"github.com/railwayapp/cli/errors","name":"errors","synopsis":"","isRedistributable":true}
