mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-16 10:17:41 +00:00
add test and improve config error messages
This commit is contained in:
1 parent
eb6dd4d69e
commit
a7d6782176
4 files changed
+27
-10
No files matched your search
@@ -84,6 +84,6 @@ func (s *AptlyContextSuite) TestGetPublishedStorageBadFS(c *C) {
|
||||
// storage never exists.
|
||||
c.Assert(func() { s.context.GetPublishedStorage("filesystem:fuji") },
|
||||
FatalErrorPanicMatches,
|
||||
&FatalError{ReturnCode: 1, Message: fmt.Sprintf("error loading config file %s/.aptly.conf: not valid yaml or json",
|
||||
&FatalError{ReturnCode: 1, Message: fmt.Sprintf("error loading config file %s/.aptly.conf: invalid yaml (EOF) or json (EOF)",
|
||||
os.Getenv("HOME"))})
|
||||
}
|
||||
Reference in new issue
Block a user