Fix cosmetics for fail!() calls

This commit is contained in:
Marvin Löbel 2013-05-09 13:52:07 +02:00 committed by Björn Steinbrink
parent bdc182cc41
commit 04de8f852c
21 changed files with 47 additions and 63 deletions

View file

@ -146,8 +146,7 @@ impl PkgScript {
}
}
Err(e) => {
fail!("Running package script, couldn't find rustpkg sysroot (%s)",
e)
fail!("Running package script, couldn't find rustpkg sysroot (%s)", e)
}
}
}

View file

@ -21,10 +21,9 @@ pub fn pkg_parent_workspaces(pkgid: PkgId, action: &fn(&Path) -> bool) -> bool {
workspace_contains_package_id(pkgid, ws));
if workspaces.is_empty() {
// tjc: make this a condition
fail!("Package %s not found in any of \
the following workspaces: %s",
pkgid.path.to_str(),
rust_path().to_str());
fail!("Package %s not found in any of the following workspaces: %s",
pkgid.path.to_str(),
rust_path().to_str());
}
for workspaces.each |ws| {
if action(ws) {