chore: improve error message when api key not set
This commit is contained in:
parent
94d0fb1207
commit
b3b8e4b80d
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ use std::env;
|
|||
#[tokio::main]
|
||||
async fn main() -> Result<(), Error> {
|
||||
let token =
|
||||
env::var("CANVAS_SECRET").expect("Canvas API key is not defined in the environment.");
|
||||
env::var("CANVAS_SECRET").expect("Canvas API key is not defined in the environment. Please set environment variable `CANVAS_SECRET`.");
|
||||
|
||||
// Base URL must have trailing slash or URL `.join()` will not work
|
||||
let client = CanvasClient::create(
|
||||
|
|
Loading…
Reference in a new issue