Skip to content

Commit 9c99c22

Browse files
fix plash error naming
1 parent d0d7ee4 commit 9c99c22

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nbs/00_core.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
" if app_id == '': print('Error: App ID cannot be an empty string'); return\n",
344344
" if not path.is_dir(): print(\"Error: Path should point to the project directory\"); return\n",
345345
" try: validate_app(path)\n",
346-
" except PlashAppError as e: print(f\"Error: {str(e)}\\nInvalid path: {path}\"); return\n",
346+
" except PlashError as e: print(f\"Error: {str(e)}\\nInvalid path: {path}\"); return\n",
347347
" \n",
348348
" try: \n",
349349
" if not app_id: app_id = get_app_id(path)\n",

plash_cli/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def deploy(
130130
if app_id == '': print('Error: App ID cannot be an empty string'); return
131131
if not path.is_dir(): print("Error: Path should point to the project directory"); return
132132
try: validate_app(path)
133-
except PlashAppError as e: print(f"Error: {str(e)}\nInvalid path: {path}"); return
133+
except PlashError as e: print(f"Error: {str(e)}\nInvalid path: {path}"); return
134134

135135
try:
136136
if not app_id: app_id = get_app_id(path)

0 commit comments

Comments
 (0)