Skip to content

Commit

Permalink
VS path fix
Browse files Browse the repository at this point in the history
Better error handling if actual error message is missing
  • Loading branch information
zapov committed Sep 3, 2022
1 parent e3fecf2 commit f3650ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VisualStudioPlugin/2010/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Identifier Id="DDDLanguage..0c2dba72-d915-4d37-9379-2100b92042de">
<Name>DSL Platform</Name>
<Author>N.G.S.</Author>
<Version>2.0.0</Version>
<Version>1.9.1</Version>
<Description xml:space="preserve">Domain Specification Language by DSL Platform. Based on Domain-Driven Design</Description>
<Locale>1033</Locale>
<MoreInfoUrl>https://dsl-platform.com</MoreInfoUrl>
Expand Down
5 changes: 4 additions & 1 deletion VisualStudioPlugin/Gui/CompileTargets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@ private Either<Dictionary<string, string>> RunCompiler(string dslCompiler, Libra
.ToDictionary(it => it.key, it => it.value);
return Either.Success(dict);
}
else return Either<Dictionary<string, string>>.Fail(result.Error);
var error = string.IsNullOrEmpty(result.Error)
? "Unknown error"
: result.Error;
return Either<Dictionary<string, string>>.Fail(error);
}

public Either<List<string>> Compile(List<string> dsls)
Expand Down
2 changes: 1 addition & 1 deletion VisualStudioPlugin/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="DDDLanguage..0c2dba72-d915-4d37-9379-2100b92042de" Version="2.0.0" Language="en-US" Publisher="N.G.S." />
<Identity Id="DDDLanguage..0c2dba72-d915-4d37-9379-2100b92042de" Version="1.9.1" Language="en-US" Publisher="N.G.S." />
<DisplayName>DSL Platform</DisplayName>
<Description xml:space="preserve">Domain Specification Language by DSL Platform. Based on Domain-Driven Design</Description>
<MoreInfo>https://dsl-platform.com</MoreInfo>
Expand Down

0 comments on commit f3650ff

Please sign in to comment.