Skip to content

Commit

Permalink
add Unknown error
Browse files Browse the repository at this point in the history
  • Loading branch information
yjfnypeu committed Aug 11, 2017
1 parent 39f69c6 commit b8e6764
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ private void invokeWithCallback(RouteCallback callback) {
callback.notFound(uri, (NotFoundException) error);
} else if (error != null) {
callback.onOpenFailed(uri, error);
} else {
} else if (rule != null) {
callback.onOpenSuccess(uri, rule);
} else {
callback.onOpenFailed(uri, new RuntimeException("Unknown error"));
}
}

Expand Down

0 comments on commit b8e6764

Please sign in to comment.