amend
This commit is contained in:
parent
91aab4ab5c
commit
8dc1e7e436
|
@ -76,8 +76,8 @@ public class Pluie.Yaml.Dumper
|
|||
/**
|
||||
* get a gracefull yaml presentation of current Yaml.Node
|
||||
* @param node the node to dump
|
||||
* @param flag indicating if enable printing colors
|
||||
* @param show_line flag indicating if line number must be print
|
||||
* @param show_color flag indicating if enable printing colors
|
||||
* @param show_tags flag indicating if tags must be print
|
||||
* @param show_doc flag indicating if the document start must be print
|
||||
* @param indent number of space for indentation
|
||||
|
|
|
@ -83,7 +83,6 @@ public class Pluie.Yaml.Node : Yaml.AbstractChild, Pluie.Yaml.Collection
|
|||
/**
|
||||
* actions to execute before adding the specified child bode
|
||||
* @param child the Yaml.Node child to add
|
||||
* @throws Yaml.AddNodeError
|
||||
*/
|
||||
protected virtual void before_add (Yaml.Node child) throws Yaml.AddNodeError
|
||||
{
|
||||
|
|
|
@ -152,10 +152,15 @@ namespace Pluie
|
|||
var writter = new Io.Writter (path);
|
||||
if (writter.write (zdata)) {
|
||||
var file = File.new_for_path (dpath);
|
||||
convert (writter.file, file, new ZlibDecompressor (ZFORMAT));
|
||||
var config = new Yaml.Config (dpath);
|
||||
obj = config.root_node ();
|
||||
writter.delete_file ();
|
||||
try {
|
||||
convert (writter.file, file, new ZlibDecompressor (ZFORMAT));
|
||||
var config = new Yaml.Config (dpath);
|
||||
obj = config.root_node ();
|
||||
writter.delete_file ();
|
||||
}
|
||||
catch(GLib.Error e) {
|
||||
of.error (e.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
|
|
Loading…
Reference in New Issue
Block a user