Skip to content

Commit ac7b93a

Browse files
committed
Improve error message on missing env variable in GitHub example
1 parent ddd32e0 commit ac7b93a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/github/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn main() -> Result<(), failure::Error> {
3838
dotenv::dotenv().ok();
3939
env_logger::init();
4040

41-
let config: Env = envy::from_env()?;
41+
let config: Env = envy::from_env().context("while reading from environment")?;
4242

4343
let args = Command::from_args();
4444

0 commit comments

Comments
 (0)