From 6a5144fb4eb172c123c0087153f20608f887a3a2 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Mon, 14 Jul 2014 20:36:49 -0400 Subject: [PATCH] Adds an error for missing driver params --- config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/config.go b/config/config.go index bb2e0e2..5a3f483 100644 --- a/config/config.go +++ b/config/config.go @@ -7,11 +7,14 @@ package config import ( "encoding/json" + "errors" "io" "os" "time" ) +var ErrMissingRequiredParam = errors.New("A parameter that was required by a driver is not present") + // Duration wraps a time.Duration and adds JSON marshalling. type Duration struct{ time.Duration }