Commit 0bf25d9
committed
Correct exit code for development script
Prior to this patch, when the "populate test data" script failed, it
simply printed the error object and exited with a successful exit code.
This made recognizing the failure difficult because the error object
includes hundreds of lines of context which do not obviously indicate a
problem.
Signify an error has taken place using a non-zero exit code as per UNIX
convention. This allows the caller to recognize the failure (and in
particular, it causes the `npm` utility--which invokes this script on
the user's behalf--to prominently describe the failure).1 parent 57e0d7e commit 0bf25d9
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
0 commit comments