Skip to content

Conversation

MaggieKimani1
Copy link
Contributor

@MaggieKimani1 MaggieKimani1 commented Aug 1, 2022

Resolves #888
Should fix #900

Comment on lines +61 to +70
catch (Exception ex)
{
#if DEBUG
logger.LogCritical(ex, ex.Message);
throw; // so debug tools go straight to the source of the exception when attached
#else
logger.LogCritical( ex.Message);
return 1;
#endif
}

Check notice

Code scanning / CodeQL

Generic catch clause

Generic catch clause.
Comment on lines 36 to 46
catch (Exception ex)
{
#if DEBUG
logger.LogCritical(ex, ex.Message);
throw; // so debug tools go straight to the source of the exception when attached
#else
logger.LogCritical( ex.Message);
Environment.Exit(1);
return 1;
#endif
}

Check notice

Code scanning / CodeQL

Generic catch clause

Generic catch clause.
Comment on lines 215 to +218
catch (Exception ex)
{
#if DEBUG
logger.LogCritical(ex, ex.Message);
#else
logger.LogCritical(ex.Message);

#endif
return 1;
}
throw new InvalidOperationException($"Could not transform the document, reason: {ex.Message}", ex);
}

Check notice

Code scanning / CodeQL

Generic catch clause

Generic catch clause.
@MaggieKimani1 MaggieKimani1 merged commit a5923c0 into vnext Aug 4, 2022
@MaggieKimani1 MaggieKimani1 deleted the mk/upgrade-system-commandline branch August 4, 2022 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hidi returns exit code 0 even when failing on mac
2 participants