Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving error handling for datasources #314

Merged
merged 1 commit into from
May 4, 2018

Conversation

hairyhenderson
Copy link
Owner

Errors involving datasources (such as a missing or empty datasource) result in gomplate exiting with a message with little context. This improves the situation, as well removes (almost) the use of log.Fatal/log.Fatalf.

A few function signatures change (added error return value), but they're mostly intended for use in templates, where an error is OK (and handled by text/template).

Signed-off-by: Dave Henderson [email protected]

@hairyhenderson hairyhenderson force-pushed the improve-datasource-errors branch from 05616bb to 7471cb7 Compare May 4, 2018 01:46
@hairyhenderson hairyhenderson merged commit 381efb0 into master May 4, 2018
@hairyhenderson hairyhenderson deleted the improve-datasource-errors branch May 4, 2018 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant