Skip to content

Commit

Permalink
make throw exception clearly known when getting scheduler project failed
Browse files Browse the repository at this point in the history
  • Loading branch information
chenli committed Nov 24, 2023
1 parent cf51e1f commit 8f98f1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dinky-admin/src/main/java/org/dinky/init/SystemInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.dinky.daemon.pool.ScheduleThreadPool;
import org.dinky.daemon.task.DaemonTask;
import org.dinky.daemon.task.DaemonTaskConfig;
import org.dinky.data.exception.BusException;
import org.dinky.data.exception.DinkyException;
import org.dinky.data.model.Configuration;
import org.dinky.data.model.SystemConfiguration;
Expand Down Expand Up @@ -247,7 +248,7 @@ private void initDolphinScheduler() {
}
} catch (Exception e) {
log.error("Error in DolphinScheduler: ", e);
throw new DinkyException(e);
throw new BusException("get DolphinScheduler project failed, please check the config of DolphinScheduler!");
}
}
}));
Expand Down

0 comments on commit 8f98f1e

Please sign in to comment.