Skip to content

Commit

Permalink
Fixes #267
Browse files Browse the repository at this point in the history
  • Loading branch information
Se-C12 authored Oct 12, 2022
1 parent 2a8b694 commit b72e4f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
import javax.inject.Inject;

import org.ndx.aadarchi.base.OutputBuilder;
import org.ndx.aadarchi.base.ViewEnhancer;
import org.ndx.aadarchi.base.ehancers.ViewEnhancerAdapter;

import com.structurizr.Workspace;
import org.ndx.aadarchi.base.enhancers.ViewEnhancerAdapter;

import com.structurizr.view.ComponentView;
import com.structurizr.view.ContainerView;
import com.structurizr.view.View;
import com.structurizr.view.ViewSet;

public class ViewUpdater extends ViewEnhancerAdapter {
@Inject Logger logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import static org.ndx.aadarchi.github.Constants.CONFIG_GITHUB_TOKEN;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
Expand All @@ -20,7 +22,9 @@ public class GitHubProducer {

public @Produces @ApplicationScoped GitHub initialize(@ConfigProperty(name=CONFIG_GITHUB_TOKEN) String token) {
if(token==null || token.isBlank()) {
throw new GitHubHandlerException(String.format("Can't connect to GitHub if token %s isn't defined as system property", Constants.CONFIG_GITHUB_TOKEN));
throw new GitHubHandlerException(String.format("Can't connect to GitHub if token %s isn't defined as system property" +
"\nSee https://github.com/Riduidel/aadarchi/wiki/How-to-add-aadarchi.github.token for details",
Constants.CONFIG_GITHUB_TOKEN));
}
try {
return new GitHubBuilder().withOAuthToken(token).build();
Expand Down

0 comments on commit b72e4f4

Please sign in to comment.