Skip to content

Commit 1a92cdc

Browse files
authored
Make error more verbose (#281)
* Make error more verbose * Allow manual running of big test
1 parent b4f1794 commit 1a92cdc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/publish_testpypi.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
---
33
name: test-n-build
44
on:
5+
workflow_dispatch:
56
push:
67
tags:
78
- v*
@@ -77,7 +78,11 @@ jobs:
7778
working-directory: ./src/py/
7879
name: Upload release to TestPyPI
7980
needs: super-test
80-
if: always() && !cancelled() && !failure()
81+
if: |
82+
always() &&
83+
!cancelled() &&
84+
!failure() &&
85+
startsWith(github.ref, 'refs/tags/')
8186
runs-on: ubuntu-latest
8287
environment:
8388
name: testpypi

src/py/kaleido/_mocker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _load_figures_from_paths(paths: list[Path]):
158158
args = parser.parse_args()
159159

160160
if not Path(args.output).is_dir():
161-
raise ValueError("Specified output must be existing directory.")
161+
raise ValueError(f"Specified output must be existing directory. Is {args.output!s}")
162162

163163

164164
# Function to process the images

0 commit comments

Comments
 (0)