git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix --export
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
Library.java
diff --git
a/src/be/nikiroo/fanfix/Library.java
b/src/be/nikiroo/fanfix/Library.java
index 68f93c5385c66ea52c7f4bd2fd6d43eb8ed8bb3b..15b81e44db7aca3caf8869f8f0b53539e1ddb8aa 100644
(file)
--- a/
src/be/nikiroo/fanfix/Library.java
+++ b/
src/be/nikiroo/fanfix/Library.java
@@
-194,6
+194,11
@@
public class Library {
throw new IOException("Output type not supported: " + type);
}
throw new IOException("Output type not supported: " + type);
}
+ Story story = getStory(luid);
+ if (story == null) {
+ throw new IOException("Cannot find story to export: " + luid);
+ }
+
return out.process(getStory(luid), target);
}
return out.process(getStory(luid), target);
}