-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
22 lines (17 loc) · 669 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// dcc - dependency-driven C/C++ compiler front end
//
// Copyright © A.Newman 2015.
//
// This source code is released under version 2 of the GNU Public License.
// See the file LICENSE for details.
//
package main
import "errors"
var (
// ErrUnexpectedEOF means the dependency file is empty.
ErrUnexpectedEOF = errors.New("unexpected end of file")
// ErrNoColon means the first line has no ':' (target definition)
ErrNoColon = errors.New("expected a make-target on line 1 of dependency file, no ':' found")
// ErrMultipleTargets means more than one target file was detected.
ErrMultipleTargets = errors.New("multiple targets found in dependency file")
)