We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a445550 commit 0724bf6Copy full SHA for 0724bf6
source/pdal/capi/Pipeline.cpp
@@ -36,21 +36,27 @@ namespace pdal
36
37
if (executor)
38
{
39
+ bool valid = false;
40
+
41
try
42
- executor->validate();
43
+ valid = executor->validate();
44
}
45
catch (const std::exception &e)
46
- printf("Could not validate pipeline: %s\n%s\n", e.what(), json);
- delete executor;
47
- executor = NULL;
+ printf("Error while validating pipeline: %s\n%s\n", e.what(), json);
48
49
50
- if (executor)
+ if (valid)
51
52
pipeline = new Pipeline(executor);
53
54
+ else
55
+ {
56
+ delete executor;
57
+ executor = NULL;
58
+ printf("The pipeline is invalid:\n%s\n", json);
59
+ }
60
61
62
0 commit comments