mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
bad flake expr is fatal
This commit is contained in:
parent
26d7044cd7
commit
a6b4125c93
1 changed files with 3 additions and 2 deletions
5
direnvrc
5
direnvrc
|
|
@ -263,10 +263,11 @@ use_flake() {
|
|||
flake_dir=${flake_dir#"path:"}
|
||||
|
||||
if [[ "$flake_expr" = -* ]]; then
|
||||
local message="the first argument must be a flake expression"
|
||||
if [[ -n "$2" ]]; then
|
||||
log_status "the first argument must be a flake expression"
|
||||
_nix_direnv_fatal "$message"
|
||||
else
|
||||
log_status "the first argument must be a flake expression. did you mean 'use flake . $1'?"
|
||||
_nix_direnv_fatal "$message. did you mean 'use flake . $1'?"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue