Fix cosmetics for fail!() calls
This commit is contained in:
parent
bdc182cc41
commit
04de8f852c
21 changed files with 47 additions and 63 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue