1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 10:22:48 +02:00

Show an error if a file cannot be sourced.

This commit is contained in:
Peter Zotov 2010-12-04 04:15:25 +03:00
parent 301f0c6605
commit 3851d0db66

View File

@ -1,6 +1,7 @@
/*
* JzBoot: an USB bootloader for JZ series of Ingenic(R) microprocessors.
* Copyright (C) 2010 Sergey Gridassov <grindars@gmail.com>
* Copyright (C) 2010 Sergey Gridassov <grindars@gmail.com>,
* Peter Zotov <whitequark@whitequark.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -299,6 +300,10 @@ static int builtin_source(int argc, char *argv[]) {
int ret = shell_source(argv[1]);
if(ret == -1) {
printf("Error while sourcing file %s\n", argv[1]);
}
shell_exit = 0;
return ret;