From b6ac0b39042e91b9b50f1a7ae99a47aac3f3cdb4 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 25 May 2022 12:35:25 +0200 Subject: [PATCH] fix(cmd): expose error in transient prompt resolves #2327 --- src/shell/scripts/omp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/scripts/omp.lua b/src/shell/scripts/omp.lua index 3c7c4d89..db573925 100644 --- a/src/shell/scripts/omp.lua +++ b/src/shell/scripts/omp.lua @@ -162,7 +162,7 @@ function p:rightfilter(prompt) return cached_prompt.right, false end function p:transientfilter(prompt) - local prompt_exe = string.format('%s print transient --config=%s', omp_exe(), omp_config()) + local prompt_exe = string.format('%s print transient --config=%s %s', omp_exe(), omp_config(), error_level_option()) prompt = run_posh_command(prompt_exe) if prompt == "" then prompt = nil