Skip to content

Commit

Permalink
Add message to fonts.len() == 0 assert
Browse files Browse the repository at this point in the history
  • Loading branch information
bjwbell committed May 13, 2014
1 parent 6640f2e commit 8162f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/gfx/font_context.rs
Expand Up @@ -192,7 +192,7 @@ impl FontContext {
};
}
}
assert!(fonts.len() > 0);
assert!(fonts.len() > 0, "No matching font(s), are the appropriate fonts installed?");
// TODO(Issue #179): Split FontStyle into specified and used styles
let used_style = (*style).clone();

Expand Down

5 comments on commit 8162f61

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at bjwbell@8162f61

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bjwbell/servo/add-message-to-assert = 8162f61 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bjwbell/servo/add-message-to-assert = 8162f61 merged ok, testing candidate = 3ccc81b

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 3ccc81b

Please sign in to comment.