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

Enable error output in Config object. #1551

Closed
enzolutions opened this issue Dec 21, 2015 · 0 comments · Fixed by hechoendrupal/drupal-console-core#352
Closed

Enable error output in Config object. #1551

enzolutions opened this issue Dec 21, 2015 · 0 comments · Fixed by hechoendrupal/drupal-console-core#352

Comments

@enzolutions
Copy link
Contributor

Right now, is not possible generate a error report using messageHelper, due is not loaded yet.

Check code inside loadResource method at Config Class.

 if ($filename == 'application') {
     try {
         $this->writeTranslationByFile($resource, 'application');
     } catch (ParseException $e) {
         print 'application.yml' . ' ' . $e->getMessage();
     }

 } else {
     $key = 'commands.' . $filename;
     try {
         $this->writeTranslationByFile($resource, $key);
     } catch (ParseException $e) {
         print $key . '.yml ' . $e->getMessage();
     }
 }

@jmolivas jmolivas changed the title Enable DrupalStyle in translator helper loadresource Enable error output in Config object. Dec 21, 2015
@jmolivas jmolivas removed the refactor label Feb 10, 2016
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 a pull request may close this issue.

2 participants