Skip to content

Commit 9ba419d

Browse files
committed
Corrected error description for FluentBundle.format
1 parent 1154408 commit 9ba419d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fluent/src/bundle.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,10 @@ impl<'bundle> FluentBundle<'bundle> {
297297
///
298298
/// # Errors
299299
///
300-
/// On error, the string returned will be the path. This allows
301-
/// for slightly graceful fallback during errors.
300+
/// If the message id or path is not found in the bundle, `format`
301+
/// returns None. On Fluent processing errors after initial lookup
302+
/// `format` returns `Some((path, errors)`. `path` is the path you
303+
/// originally provided, and `errors` explains what went wrong.
302304
pub fn format(
303305
&self,
304306
path: &str,

0 commit comments

Comments
 (0)