diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-01-04 12:21:46 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-01-05 09:20:31 -0800 |
| commit | eadfe0e3c9b55ec48637d5cdae36eca7421a8159 (patch) | |
| tree | e24dbf2474ff0fe6d1bce1708e127bc21747a925 /src/rustllvm/RustWrapper.cpp | |
| parent | 4eceb0050c107c4ed18221bde9e5046613a710b6 (diff) | |
| download | rust-eadfe0e3c9b55ec48637d5cdae36eca7421a8159.tar.gz rust-eadfe0e3c9b55ec48637d5cdae36eca7421a8159.zip | |
Don't abort the process in native::start
If the main closure failed, then the `exit_code` variable would still be `None`, and the `unwrap()` was failing (triggering a process abort). This changes the `unwrap()` to an `unwrap_or()` in order to prevent process abort and detect when the native task failed.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
