Permalink
Browse files

Fix formatting in parse

  • Loading branch information...
zachhuff386 committed Sep 10, 2015
1 parent ca056f1 commit 120aef5b35f354fc6a4c6805e4aabdf56c582a81
Showing with 6 additions and 3 deletions.
  1. +6 −3 parse/parse.go
View
@@ -127,7 +127,8 @@ func File(distro, release, home string) (pac *pack.Pack, err error) {
return
} else if key[len(key)-1:] == " " {
err = &SyntaxError{
errors.Newf("parse: Extra space before '=' (%d: %s)",
errors.Newf(
"parse: Extra space before '=' (%d: %s)",
n, line),
}
return
@@ -181,13 +182,15 @@ func File(distro, release, home string) (pac *pack.Pack, err error) {
}
case " ":
err = &SyntaxError{
errors.Newf("parse: Extra space after '=' (%d: %s)",
errors.Newf(
"parse: Extra space after '=' (%d: %s)",
n, line),
}
return
default:
err = &SyntaxError{
errors.Newf("parse: Unexpected char '%s' expected "+
errors.Newf(
"parse: Unexpected char '%s' expected "+
"'\"' or '`' (%d: %s)", val[:1], n, line),
}
return

0 comments on commit 120aef5

Please sign in to comment.