fix: stop after does not print errors if actor cancelled

This commit is contained in:
Evan Tschannen 2017-11-01 10:58:39 -07:00
parent 0d4db774b2
commit b1e3864c0e
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ Future<Optional<T>> stopAfter( Future<T> what ) {
T _ = wait(what);
ret = Optional<T>(_);
} catch (Error& e) {
bool ok = e.code() == error_code_please_reboot || e.code() == error_code_please_reboot_delete;
bool ok = e.code() == error_code_please_reboot || e.code() == error_code_please_reboot_delete || e.code() == error_code_actor_cancelled;
TraceEvent(ok ? SevInfo : SevError, "StopAfterError").error(e);
if(!ok) {
fprintf(stderr, "Fatal Error: %s\n", e.what());