summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zuul-preview/main.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/zuul-preview/main.cc b/zuul-preview/main.cc
index f15df88..8bfa4d5 100644
--- a/zuul-preview/main.cc
+++ b/zuul-preview/main.cc
@@ -128,7 +128,7 @@ int main(int, char**)
128 // Split the input into api_url, hostname 128 // Split the input into api_url, hostname
129 auto parts = split(input, ' '); 129 auto parts = split(input, ' ');
130 if (parts.size() != 2) { 130 if (parts.size() != 2) {
131 cout << "Wrong number of args" << endl; 131 cout << "NULL" << endl;
132 continue; 132 continue;
133 } 133 }
134 auto api_url = parts[0]; 134 auto api_url = parts[0];
@@ -144,7 +144,7 @@ int main(int, char**)
144 // build url. 144 // build url.
145 parts = split(hostname, '.'); 145 parts = split(hostname, '.');
146 if (parts.size() < 3) { 146 if (parts.size() < 3) {
147 cout << "Not enough hostname parts" << endl; 147 cout << "NULL" << endl;
148 continue; 148 continue;
149 } 149 }
150 auto artifact = parts[0]; 150 auto artifact = parts[0];
@@ -179,7 +179,7 @@ int main(int, char**)
179 // If anything goes wrong, we still need to return only a single 179 // If anything goes wrong, we still need to return only a single
180 // string to apache, and recover for the next request, so we 180 // string to apache, and recover for the next request, so we
181 // have a general exception handler here. 181 // have a general exception handler here.
182 cout << "Error" << endl; 182 cout << "NULL" << endl;
183 } 183 }
184 } 184 }
185} 185}