pulumi/pkg/errors/compiler.go
joeduffy e02921dc35 Finish dependency and type binding
This change completes the implementation of dependency and type binding.
The top-level change here is that, during the first semantic analysis AST walk,
we gather up all unknown dependencies.  Then the compiler resolves them, caching
the lookups to ensure that we don't load the same stack twice.  Finally, during
the second and final semantic analysis AST walk, we populate the bound nodes
by looking up what the compiler resolved for us.
2016-11-23 07:26:45 -08:00

58 lines
1.5 KiB
Go

// Copyright 2016 Marapongo, Inc. All rights reserved.
package errors
import (
"github.com/marapongo/mu/pkg/diag"
)
var ErrorMissingMufile = &diag.Diag{
ID: 100,
Message: "No Mufile was found in the given path or any of its parents (%v)",
}
var WarningIllegalMufileCasing = &diag.Diag{
ID: 101,
Message: "A Mufile-like file was located, but it has incorrect casing (expected Mufile.*)",
}
var WarningIllegalMufileExt = &diag.Diag{
ID: 102,
Message: "A file named `Mufile` was located, but '%v' isn't a valid file extension (expected .json or .yaml)",
}
var ErrorIO = &diag.Diag{
ID: 103,
Message: "An IO error occurred during the current operation: %v",
}
var ErrorUnrecognizedCloudArch = &diag.Diag{
ID: 120,
Message: "The cloud architecture '%v' was not recognized",
}
var ErrorUnrecognizedSchedulerArch = &diag.Diag{
ID: 121,
Message: "The cloud scheduler architecture '%v' was not recognized",
}
var ErrorIllegalCloudSchedulerCombination = &diag.Diag{
ID: 122,
Message: "The cloud architecture '%v' is incompatible with scheduler '%v'",
}
var ErrorConflictingClusterArchSelection = &diag.Diag{
ID: 123,
Message: "The cloud architecture specification '%v' conflicts with cluster '%v's setting of '%v'",
}
var ErrorClusterNotFound = &diag.Diag{
ID: 124,
Message: "A cloud target '%v' was not found in the stack or cluster definition",
}
var ErrorMissingTarget = &diag.Diag{
ID: 125,
Message: "Neither a target nor cloud architecture was provided, and no defaults were found",
}