Commit 5a38a4d
authored
Improve error message on inexistent files with local server (#754)
Add a check that the file exists when calling the (no-op)
`upload_file` method on the local file transfer strategy.
This ensures a nice error is produced when trying to import an
inexistent ACPH5 file, instead of failing on H5Open.
Resolves #748.1 parent f784f32 commit 5a38a4d
File tree
2 files changed
+13
-0
lines changed- src/ansys/acp/core/_server
- tests/unittests
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
0 commit comments